Class JsonMapper

java.lang.Object
com.fasterxml.jackson.core.TreeCodec
com.fasterxml.jackson.core.ObjectCodec
com.fasterxml.jackson.databind.ObjectMapper
com.fasterxml.jackson.databind.json.JsonMapper
All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned, Serializable

public class JsonMapper extends ObjectMapper
JSON-format specific ObjectMapper implementation.
Since:
2.10
See Also:
  • Constructor Details

    • JsonMapper

      public JsonMapper()
    • JsonMapper

      public JsonMapper(com.fasterxml.jackson.core.JsonFactory f)
    • JsonMapper

      protected JsonMapper(JsonMapper src)
  • Method Details

    • copy

      public JsonMapper copy()
      Description copied from class: ObjectMapper
      Method for creating a new ObjectMapper instance that has same initial configuration as this instance. Note that this also requires making a copy of the underlying JsonFactory instance.

      Method is typically used when multiple, differently configured mappers are needed. Although configuration is shared, cached serializers and deserializers are NOT shared, which means that the new instance may be re-configured before use; meaning that it behaves the same way as if an instance was constructed from scratch.

      Overrides:
      copy in class ObjectMapper
    • builder

      public static JsonMapper.Builder builder()
    • builder

      public static JsonMapper.Builder builder(com.fasterxml.jackson.core.JsonFactory streamFactory)
    • rebuild

      public JsonMapper.Builder rebuild()
    • version

      public com.fasterxml.jackson.core.Version version()
      Description copied from class: ObjectMapper
      Method that will return version information stored in and read from jar that contains this class.
      Specified by:
      version in interface com.fasterxml.jackson.core.Versioned
      Overrides:
      version in class ObjectMapper
    • getFactory

      public com.fasterxml.jackson.core.JsonFactory getFactory()
      Overrides:
      getFactory in class ObjectMapper
    • isEnabled

      public boolean isEnabled(com.fasterxml.jackson.core.json.JsonReadFeature f)
    • isEnabled

      public boolean isEnabled(com.fasterxml.jackson.core.json.JsonWriteFeature f)