インタフェース JsonMapper

既知の実装クラスのリスト:
JacksonMapper

public interface JsonMapper
  • メソッドの詳細

    • convertValue

      <T> T convertValue(Object fromValue, Class<T> toValueType)
      Serializing the given value into JSON, and then binding JSON data into value of the given type.
      型パラメータ:
      T -
      パラメータ:
      fromValue -
      toValueType -
      戻り値:
    • convertValue

      Type convertValue(Object fromValue, Type toValueType)
      Serializing the given value into JSON, and then binding JSON data into value of the given type.
      パラメータ:
      fromValue -
      toValueType -
      戻り値:
    • toJson

      String toJson(Object obj)
      From Object to JSON String
      パラメータ:
      obj -
      戻り値:
    • toJson

      String toJson(Object obj, boolean prettyPrint)
      From Object to JSON String
      パラメータ:
      obj -
      prettyPrint -
      戻り値:
    • toJsonAndWrite

      void toJsonAndWrite(Object obj, File out, boolean prettyPrint)
      Convert object to JSON and write it to File.
      パラメータ:
      obj -
      out -
      prettyPrint -
    • toJsonAndWrite

      void toJsonAndWrite(Object obj, OutputStream out, boolean prettyPrint)
      Convert object to JSON and write it to OutputStream.
      パラメータ:
      obj -
      out -
      prettyPrint -
    • toJsonAndWrite

      void toJsonAndWrite(Object obj, Writer out, boolean prettyPrint)
      Convert object to JSON and write it to Writer.
      パラメータ:
      obj -
      out -
      prettyPrint -
    • toList

      List<Map<String,Object>> toList(File in)
    • toList

    • toList

      List<Map<String,Object>> toList(Reader in)
    • toList

      List<Map<String,Object>> toList(String json)
    • toMap

      Map<String,Object> toMap(File in)
    • toMap

    • toMap

      Map<String,Object> toMap(Reader in)
    • toMap

      Map<String,Object> toMap(String json)
    • toObject

      <T> T toObject(File in, Class<T> clazz)
      From JSON file to object
      型パラメータ:
      T -
      パラメータ:
      in -
      clazz -
      戻り値:
    • toObject

      <T> T toObject(byte[] in, Class<T> clazz)
      From JSON byte[] to Object
      型パラメータ:
      T -
      パラメータ:
      in -
      clazz -
      戻り値:
    • toObject

      <T> T toObject(InputStream in, Class<T> clazz)
      From JSON InputStream to Object
      型パラメータ:
      T -
      パラメータ:
      in -
      clazz -
      戻り値:
    • toObject

      <T> T toObject(Reader in, Class<T> clazz)
      From JSON reader to object
      型パラメータ:
      T -
      パラメータ:
      in -
      clazz -
      戻り値:
    • toObject

      <T> T toObject(String json, Class<T> clazz)
      From JSON string to object
      型パラメータ:
      T -
      パラメータ:
      json -
      clazz -
      戻り値:
    • toObject

      Object toObject(String json, Object hint)
      From JSON string to object
      パラメータ:
      json -
      hint -
      戻り値:
    • toObject

      Object toObject(String json, Type hint)
      From JSON string to object
      パラメータ:
      json -
      hint -
      戻り値: