パッケージ org.wcardinal.util.json

クラス Json

java.lang.Object
org.wcardinal.util.json.Json

public class Json extends Object
  • フィールドの概要

    フィールド
    修飾子とタイプ
    フィールド
    説明
    static final com.fasterxml.jackson.databind.ObjectMapper
     
    static final com.fasterxml.jackson.databind.ObjectWriter
     
  • メソッドの概要

    修飾子とタイプ
    メソッド
    説明
    static <T> T
    convert(com.fasterxml.jackson.databind.JsonNode fromValue, com.fasterxml.jackson.databind.JavaType type)
     
    static <T> T
    convert(com.fasterxml.jackson.databind.JsonNode fromValue, Class<T> type)
     
    static String
    convert(Object object)
     
    static <T> T
    convert(String json, com.fasterxml.jackson.databind.JavaType type)
     
    static <T> T
    convert(String json, Class<T> type)
     
    static com.fasterxml.jackson.databind.JavaType
    typeOf(Class<?> type)
     
    static com.fasterxml.jackson.databind.JavaType
    typeOf(Class<?> baseType, com.fasterxml.jackson.databind.JavaType... types)
     
    static com.fasterxml.jackson.databind.JavaType
    typeOf(Class<?> baseType, Class<?>... types)
     

    クラスから継承されたメソッド java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • フィールド詳細

    • mapper

      public static final com.fasterxml.jackson.databind.ObjectMapper mapper
    • non_closing_writer

      public static final com.fasterxml.jackson.databind.ObjectWriter non_closing_writer
  • メソッドの詳細

    • convert

      public static <T> T convert(com.fasterxml.jackson.databind.JsonNode fromValue, Class<T> type)
    • convert

      public static <T> T convert(com.fasterxml.jackson.databind.JsonNode fromValue, com.fasterxml.jackson.databind.JavaType type)
    • convert

      public static <T> T convert(String json, Class<T> type) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
      例外:
      com.fasterxml.jackson.core.JsonParseException
      com.fasterxml.jackson.databind.JsonMappingException
      IOException
    • convert

      public static <T> T convert(String json, com.fasterxml.jackson.databind.JavaType type) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
      例外:
      com.fasterxml.jackson.core.JsonParseException
      com.fasterxml.jackson.databind.JsonMappingException
      IOException
    • convert

      public static String convert(Object object) throws com.fasterxml.jackson.core.JsonProcessingException
      例外:
      com.fasterxml.jackson.core.JsonProcessingException
    • typeOf

      public static com.fasterxml.jackson.databind.JavaType typeOf(Class<?> type)
    • typeOf

      public static com.fasterxml.jackson.databind.JavaType typeOf(Class<?> baseType, Class<?>... types)
    • typeOf

      public static com.fasterxml.jackson.databind.JavaType typeOf(Class<?> baseType, com.fasterxml.jackson.databind.JavaType... types)