Uses of Class
com.fasterxml.jackson.databind.JsonMappingException
-
Packages that use JsonMappingException Package Description com.fasterxml.jackson.databind Basic data binding (mapping) functionality that allows for reading JSON content into Java Objects (POJOs) and JSON Trees (JsonNode
), as well as writing Java Objects and trees as JSON.com.fasterxml.jackson.databind.deser Contains implementation classes of deserialization part of data binding.com.fasterxml.jackson.databind.deser.impl Contains those implementation classes of deserialization part of data binding that are not considered part of public or semi-public interfaces.com.fasterxml.jackson.databind.deser.std Contains public standard implementations of abstraction that Jackson uses.com.fasterxml.jackson.databind.exc com.fasterxml.jackson.databind.ext Contains extended support for "external" packages: things that may or may not be present in runtime environment, but that are commonly enough used so that explicit support can be added.com.fasterxml.jackson.databind.introspect Functionality needed for Bean introspection, required for detecting accessors and mutators for Beans, as well as locating and handling method annotations.com.fasterxml.jackson.databind.jsonFormatVisitors Classes used for exposing logical structure of POJOs as Jackson sees it, and exposed viaObjectMapper.acceptJsonFormatVisitor(Class, JsonFormatVisitorWrapper)
andObjectMapper.acceptJsonFormatVisitor(com.fasterxml.jackson.databind.JavaType, JsonFormatVisitorWrapper)
methods.com.fasterxml.jackson.databind.jsonschema Classes needed for JSON schema support (currently just ability to generate schemas using serialization part of data mapping)com.fasterxml.jackson.databind.jsontype Package that contains interfaces that define how to implement functionality for dynamically resolving type during deserialization.com.fasterxml.jackson.databind.jsontype.impl Package that contains standard implementations forTypeResolverBuilder
andTypeIdResolver
.com.fasterxml.jackson.databind.module Package that contains classes and interfaces to help implement custom extensionModule
s (which are registered usingObjectMapper.registerModule(com.fasterxml.jackson.databind.Module)
.com.fasterxml.jackson.databind.ser Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.impl Contains implementation classes of serialization part of data binding.com.fasterxml.jackson.databind.ser.std com.fasterxml.jackson.databind.util Utility classes for Mapper package. -
-
Uses of JsonMappingException in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return JsonMappingException Modifier and Type Method Description JsonMappingException
DeserializationContext. endOfInputException(java.lang.Class<?> instClass)
Deprecated.Since 2.8; currently no way to catch EOF at databind levelstatic JsonMappingException
JsonMappingException. from(com.fasterxml.jackson.core.JsonGenerator g, java.lang.String msg)
static JsonMappingException
JsonMappingException. from(com.fasterxml.jackson.core.JsonGenerator g, java.lang.String msg, java.lang.Throwable problem)
static JsonMappingException
JsonMappingException. from(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg)
static JsonMappingException
JsonMappingException. from(com.fasterxml.jackson.core.JsonParser p, java.lang.String msg, java.lang.Throwable problem)
static JsonMappingException
JsonMappingException. from(DeserializationContext ctxt, java.lang.String msg)
static JsonMappingException
JsonMappingException. from(DeserializationContext ctxt, java.lang.String msg, java.lang.Throwable t)
static JsonMappingException
JsonMappingException. from(SerializerProvider ctxt, java.lang.String msg)
static JsonMappingException
JsonMappingException. from(SerializerProvider ctxt, java.lang.String msg, java.lang.Throwable problem)
static JsonMappingException
JsonMappingException. fromUnexpectedIOE(java.io.IOException src)
Factory method used when "upgrading" anIOException
intoJsonMappingException
: usually only needed to comply with a signature.JsonMappingException
DeserializationContext. instantiationException(java.lang.Class<?> instClass, java.lang.String msg0)
Helper method for constructing instantiation exception for specified type, to indicate that instantiation failed due to missing instantiator (creator; constructor or factory method).JsonMappingException
DeserializationContext. instantiationException(java.lang.Class<?> instClass, java.lang.Throwable cause)
Helper method for constructing instantiation exception for specified type, to indicate problem with physically constructing instance of specified class (missing constructor, exception from constructor)protected abstract JsonMappingException
DatabindContext. invalidTypeIdException(JavaType baseType, java.lang.String typeId, java.lang.String extraDesc)
Helper method for constructing exception to indicate that given type id could not be resolved to a valid subtype of specified base type.JsonMappingException
DeserializationContext. invalidTypeIdException(JavaType baseType, java.lang.String typeId, java.lang.String extraDesc)
JsonMappingException
SerializerProvider. invalidTypeIdException(JavaType baseType, java.lang.String typeId, java.lang.String extraDesc)
JsonMappingException
DeserializationContext. mappingException(java.lang.Class<?> targetClass)
Deprecated.Since 2.8 useDeserializationContext.handleUnexpectedToken(Class, JsonParser)
insteadJsonMappingException
DeserializationContext. mappingException(java.lang.Class<?> targetClass, com.fasterxml.jackson.core.JsonToken token)
Deprecated.Since 2.8 useDeserializationContext.handleUnexpectedToken(Class, JsonParser)
insteadJsonMappingException
DeserializationContext. mappingException(java.lang.String message)
Deprecated.Since 2.9 use more specific error reporting methods insteadJsonMappingException
DeserializationContext. mappingException(java.lang.String msg, java.lang.Object... msgArgs)
Deprecated.Since 2.9 use more specific error reporting methods insteadJsonMappingException
SerializerProvider. mappingException(java.lang.String message, java.lang.Object... msgArgs)
Deprecated.Since 2.9protected JsonMappingException
SerializerProvider. mappingException(java.lang.Throwable t, java.lang.String message, java.lang.Object... msgArgs)
Deprecated.Since 2.9JsonMappingException
DeserializationContext. missingTypeIdException(JavaType baseType, java.lang.String extraDesc)
JsonMappingException
DeserializationContext. unknownTypeException(JavaType type, java.lang.String id, java.lang.String extraDesc)
JsonMappingException
DeserializationContext. weirdKeyException(java.lang.Class<?> keyClass, java.lang.String keyValue, java.lang.String msg)
Helper method for constructing exception to indicate that given JSON Object field name was not in format to be able to deserialize specified key type.JsonMappingException
DeserializationContext. weirdNativeValueException(java.lang.Object value, java.lang.Class<?> instClass)
Helper method for constructing exception to indicate that input JSON token of type "native value" (seeJsonToken.VALUE_EMBEDDED_OBJECT
) is of incompatible type (and there is no delegating creator or such to use) and can not be used to construct value of specified type (usually POJO).JsonMappingException
DeserializationContext. weirdNumberException(java.lang.Number value, java.lang.Class<?> instClass, java.lang.String msg)
Helper method for constructing exception to indicate that input JSON Number was not suitable for deserializing into given target type.JsonMappingException
DeserializationContext. weirdStringException(java.lang.String value, java.lang.Class<?> instClass, java.lang.String msgBase)
Helper method for constructing exception to indicate that input JSON String was not suitable for deserializing into given target type.static JsonMappingException
JsonMappingException. wrapWithPath(java.lang.Throwable src, JsonMappingException.Reference ref)
Method that can be called to either create a new JsonMappingException (if underlying exception is not a JsonMappingException), or augment given exception with given path/reference information.static JsonMappingException
JsonMappingException. wrapWithPath(java.lang.Throwable src, java.lang.Object refFrom, int index)
Method that can be called to either create a new JsonMappingException (if underlying exception is not a JsonMappingException), or augment given exception with given path/reference information.static JsonMappingException
JsonMappingException. wrapWithPath(java.lang.Throwable src, java.lang.Object refFrom, java.lang.String refFieldName)
Method that can be called to either create a new JsonMappingException (if underlying exception is not a JsonMappingException), or augment given exception with given path/reference information.JsonMappingException
DeserializationContext. wrongTokenException(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String msg)
Deprecated.JsonMappingException
DeserializationContext. wrongTokenException(com.fasterxml.jackson.core.JsonParser p, JavaType targetType, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String extra)
Helper method for constructingJsonMappingException
to indicate that the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.JsonMappingException
DeserializationContext. wrongTokenException(com.fasterxml.jackson.core.JsonParser p, java.lang.Class<?> targetType, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String extra)
Methods in com.fasterxml.jackson.databind with parameters of type JsonMappingException Modifier and Type Method Description protected <R> R
MappingIterator. _handleMappingException(JsonMappingException e)
Methods in com.fasterxml.jackson.databind that throw JsonMappingException Modifier and Type Method Description protected JsonSerializer<java.lang.Object>
SerializerProvider. _createAndCacheUntypedSerializer(JavaType type)
protected JsonSerializer<java.lang.Object>
SerializerProvider. _createAndCacheUntypedSerializer(java.lang.Class<?> rawType)
Method that will try to construct a value serializer; and if one is successfully created, cache it for reuse.protected JsonSerializer<java.lang.Object>
SerializerProvider. _createUntypedSerializer(JavaType type)
protected JsonSerializer<java.lang.Object>
SerializerProvider. _findExplicitUntypedSerializer(java.lang.Class<?> runtimeType)
Method that will try to find a serializer, either from cache or by constructing one; but will not return an "unknown" serializer if this cannot be done but rather returns null.protected JsonDeserializer<java.lang.Object>
ObjectMapper. _findRootDeserializer(DeserializationContext ctxt, JavaType valueType)
Method called to locate deserializer for the passed root-level value.protected JsonDeserializer<java.lang.Object>
ObjectReader. _findRootDeserializer(DeserializationContext ctxt)
Method called to locate deserializer for the passed root-level value.protected JsonDeserializer<java.lang.Object>
ObjectReader. _findTreeDeserializer(DeserializationContext ctxt)
protected JsonSerializer<java.lang.Object>
SerializerProvider. _handleContextualResolvable(JsonSerializer<?> ser, BeanProperty property)
Helper method called to resolve and contextualize given serializer, if and as necessary.protected JsonSerializer<java.lang.Object>
SerializerProvider. _handleResolvable(JsonSerializer<?> ser)
protected <T> T
DatabindContext. _throwNotASubtype(JavaType baseType, java.lang.String subType)
protected <T> T
DatabindContext. _throwSubtypeClassNotAllowed(JavaType baseType, java.lang.String subType, PolymorphicTypeValidator ptv)
protected <T> T
DatabindContext. _throwSubtypeNameNotAllowed(JavaType baseType, java.lang.String subType, PolymorphicTypeValidator ptv)
void
JsonSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType type)
Default implementation simply callsJsonFormatVisitorWrapper.expectAnyFormat(JavaType)
.void
ObjectMapper. acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.void
ObjectMapper. acceptJsonFormatVisitor(java.lang.Class<?> type, JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.void
ObjectWriter. acceptJsonFormatVisitor(JavaType type, JsonFormatVisitorWrapper visitor)
Method for visiting type hierarchy for given type, using specified visitor.void
ObjectWriter. acceptJsonFormatVisitor(java.lang.Class<?> type, JsonFormatVisitorWrapper visitor)
Since 2.6Converter<java.lang.Object,java.lang.Object>
DatabindContext. converterInstance(Annotated annotated, java.lang.Object converterDef)
Helper method to use to construct aConverter
, given a definition that may be either actual converter instance, or Class for instantiating one.void
BeanProperty.Bogus. depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
void
BeanProperty. depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
Method that can be called to visit the type structure that this property is part of.abstract JsonDeserializer<java.lang.Object>
DeserializationContext. deserializerInstance(Annotated annotated, java.lang.Object deserDef)
JsonSerializer<java.lang.Object>
SerializerProvider. findContentValueSerializer(JavaType valueType, BeanProperty property)
Alternative toSerializerProvider.findPrimaryPropertySerializer(JavaType, BeanProperty)
called not for primary value, but "content" of such primary serializer: element of an array orCollection
, value ofMap
entry and so on.JsonSerializer<java.lang.Object>
SerializerProvider. findContentValueSerializer(java.lang.Class<?> valueType, BeanProperty property)
JsonDeserializer<java.lang.Object>
DeserializationContext. findContextualValueDeserializer(JavaType type, BeanProperty prop)
Method for finding a value deserializer, and creating a contextual version if necessary, for value reached via specified property.java.lang.Object
DeserializationContext. findInjectableValue(java.lang.Object valueId, BeanProperty forProperty, java.lang.Object beanInstance)
abstract java.lang.Object
InjectableValues. findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance)
Method called to find value identified by idvalueId
to inject as value of specified property during deserialization, passing POJO instance in which value will be injected if it is available (will be available when injected via field or setter; not available when injected via constructor or factory method argument).java.lang.Object
InjectableValues.Std. findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance)
KeyDeserializer
DeserializationContext. findKeyDeserializer(JavaType keyType, BeanProperty prop)
Convenience method, functionally same as:JsonSerializer<java.lang.Object>
SerializerProvider. findKeySerializer(JavaType keyType, BeanProperty property)
Method called to get the serializer to use for serializing non-null Map keys.JsonSerializer<java.lang.Object>
SerializerProvider. findKeySerializer(java.lang.Class<?> rawKeyType, BeanProperty property)
JsonDeserializer<java.lang.Object>
DeserializationContext. findNonContextualValueDeserializer(JavaType type)
Variant that will try to locate deserializer for current type, but without performing any contextualization (unlikeDeserializationContext.findContextualValueDeserializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.BeanProperty)
) or checking for need to create aTypeDeserializer
(unlikeDeserializationContext.findRootValueDeserializer(JavaType)
.JsonSerializer<java.lang.Object>
SerializerProvider. findNullKeySerializer(JavaType serializationType, BeanProperty property)
Method called to find a serializer to use for null values for given declared type.JsonSerializer<java.lang.Object>
SerializerProvider. findNullValueSerializer(BeanProperty property)
Method called to get the serializer to use for serializing null values for specified property.JsonSerializer<java.lang.Object>
SerializerProvider. findPrimaryPropertySerializer(JavaType valueType, BeanProperty property)
Similar toSerializerProvider.findValueSerializer(JavaType, BeanProperty)
, but used when finding "primary" property value serializer (one directly handling value of the property).JsonSerializer<java.lang.Object>
SerializerProvider. findPrimaryPropertySerializer(java.lang.Class<?> valueType, BeanProperty property)
JsonDeserializer<java.lang.Object>
DeserializationContext. findRootValueDeserializer(JavaType type)
Method for finding a deserializer for root-level value.TypeDeserializer
DeserializationConfig. findTypeDeserializer(JavaType baseType)
Helper method that is needed to properly handle polymorphic referenced types, such as types referenced byAtomicReference
, or various "optional" types.JsonSerializer<java.lang.Object>
SerializerProvider. findTypedValueSerializer(JavaType valueType, boolean cache, BeanProperty property)
Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.JsonSerializer<java.lang.Object>
SerializerProvider. findTypedValueSerializer(java.lang.Class<?> valueType, boolean cache, BeanProperty property)
Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.TypeSerializer
SerializerProvider. findTypeSerializer(JavaType javaType)
Method called to get theTypeSerializer
to use for including Type Id necessary for serializing for the given Java class.JsonSerializer<java.lang.Object>
SerializerProvider. findValueSerializer(JavaType valueType)
Method variant used when we do NOT want contextualization to happen; it will need to be handled at a later point, but caller wants to be able to do that as needed; sometimes to avoid infinite loopsJsonSerializer<java.lang.Object>
SerializerProvider. findValueSerializer(JavaType valueType, BeanProperty property)
Similar toSerializerProvider.findValueSerializer(Class,BeanProperty)
, but takes full generics-aware type instead of raw class.JsonSerializer<java.lang.Object>
SerializerProvider. findValueSerializer(java.lang.Class<?> valueType)
Method variant used when we do NOT want contextualization to happen; it will need to be handled at a later point, but caller wants to be able to do that as needed; sometimes to avoid infinite loopsJsonSerializer<java.lang.Object>
SerializerProvider. findValueSerializer(java.lang.Class<?> valueType, BeanProperty property)
Method called to get hold of a serializer for a value of given type; or if no such serializer can be found, a default handler (which may do a best-effort generic serialization or just simply throw an exception when invoked).JsonSchema
ObjectMapper. generateJsonSchema(java.lang.Class<?> t)
Deprecated.Since 2.6 use external JSON Schema generator (https://github.com/FasterXML/jackson-module-jsonSchema) (which under the hood callsObjectMapper.acceptJsonFormatVisitor(JavaType, JsonFormatVisitorWrapper)
)java.lang.Object
JsonDeserializer. getEmptyValue(DeserializationContext ctxt)
Method called to determine value to be used for "empty" values (most commonly when deserializing from empty JSON Strings).T
JsonDeserializer. getNullValue(DeserializationContext ctxt)
Method that can be called to determine value to be used for representing null values (values deserialized when JSON token isJsonToken.VALUE_NULL
).void
DeserializationContext. handleBadMerge(JsonDeserializer<?> deser)
Method that deserializer may call if it is called to do an update ("merge") but deserializer operates on a non-mergeable type.JsonDeserializer<?>
DeserializationContext. handlePrimaryContextualization(JsonDeserializer<?> deser, BeanProperty prop, JavaType type)
Method called for primary property deserializers (ones directly created to deserialize values of a POJO property), to handle details of resolvingContextualDeserializer
with given property context.JsonSerializer<?>
SerializerProvider. handlePrimaryContextualization(JsonSerializer<?> ser, BeanProperty property)
Method called for primary property serializers (ones directly created to serialize values of a POJO property), to handle details of resolvingContextualSerializer
with given property context.JsonDeserializer<?>
DeserializationContext. handleSecondaryContextualization(JsonDeserializer<?> deser, BeanProperty prop, JavaType type)
Method called for secondary property deserializers (ones NOT directly created to deal with an annotatable POJO property, but instead created as a component -- such as value deserializers for structured types, or deserializers for root values) to handle details of resolvingContextualDeserializer
with given property context.JsonSerializer<?>
SerializerProvider. handleSecondaryContextualization(JsonSerializer<?> ser, BeanProperty property)
Method called for secondary property serializers (ones NOT directly created to serialize values of a POJO property but instead created as a dependant serializer -- such as value serializers for structured types, or serializers for root values) to handle details of resolvingContextualDeserializer
with given property context.abstract java.lang.Object
SerializerProvider. includeFilterInstance(BeanPropertyDefinition forProperty, java.lang.Class<?> filterClass)
Method that can be called to construct and configureJsonInclude
filter instance, given aClass
to instantiate (with default constructor, by default).abstract boolean
SerializerProvider. includeFilterSuppressNulls(java.lang.Object filter)
Follow-up method that may be called after callingSerializerProvider.includeFilterInstance(com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition, java.lang.Class<?>)
, to check handling of `null` values by the filter.abstract KeyDeserializer
DeserializationContext. keyDeserializerInstance(Annotated annotated, java.lang.Object deserDef)
com.fasterxml.jackson.annotation.ObjectIdGenerator<?>
DatabindContext. objectIdGeneratorInstance(Annotated annotated, ObjectIdInfo objectIdInfo)
JsonNode
ObjectMapper. readTree(java.lang.String content)
Same asObjectMapper.readTree(InputStream)
except content read from passed-inString
JsonNode
ObjectReader. readTree(java.lang.String json)
Same asObjectReader.readTree(InputStream)
except content read from passed-inString
<T> T
ObjectMapper. readValue(byte[] src, int offset, int len, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
<T> T
ObjectMapper. readValue(byte[] src, int offset, int len, JavaType valueType)
<T> T
ObjectMapper. readValue(byte[] src, int offset, int len, java.lang.Class<T> valueType)
<T> T
ObjectMapper. readValue(byte[] src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
<T> T
ObjectMapper. readValue(byte[] src, JavaType valueType)
<T> T
ObjectMapper. readValue(byte[] src, java.lang.Class<T> valueType)
<T> T
ObjectMapper. readValue(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.type.ResolvedType valueType)
Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> T
ObjectMapper. readValue(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> T
ObjectMapper. readValue(com.fasterxml.jackson.core.JsonParser p, JavaType valueType)
Type-safe overloaded method, basically alias forObjectMapper.readValue(JsonParser, Class)
.<T> T
ObjectMapper. readValue(com.fasterxml.jackson.core.JsonParser p, java.lang.Class<T> valueType)
Method to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (likeBoolean
).<T> T
ObjectMapper. readValue(java.io.File src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given file into given Java type.<T> T
ObjectMapper. readValue(java.io.File src, JavaType valueType)
Method to deserialize JSON content from given file into given Java type.<T> T
ObjectMapper. readValue(java.io.File src, java.lang.Class<T> valueType)
Method to deserialize JSON content from given file into given Java type.<T> T
ObjectMapper. readValue(java.io.InputStream src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
<T> T
ObjectMapper. readValue(java.io.InputStream src, JavaType valueType)
<T> T
ObjectMapper. readValue(java.io.InputStream src, java.lang.Class<T> valueType)
<T> T
ObjectMapper. readValue(java.io.Reader src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
<T> T
ObjectMapper. readValue(java.io.Reader src, JavaType valueType)
<T> T
ObjectMapper. readValue(java.io.Reader src, java.lang.Class<T> valueType)
<T> T
ObjectMapper. readValue(java.lang.String content, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given JSON content String.<T> T
ObjectMapper. readValue(java.lang.String content, JavaType valueType)
Method to deserialize JSON content from given JSON content String.<T> T
ObjectMapper. readValue(java.lang.String content, java.lang.Class<T> valueType)
Method to deserialize JSON content from given JSON content String.<T> T
ObjectMapper. readValue(java.net.URL src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef)
Same asObjectMapper.readValue(java.net.URL, Class)
except that target specified byTypeReference
.<T> T
ObjectMapper. readValue(java.net.URL src, JavaType valueType)
Same asObjectMapper.readValue(java.net.URL, Class)
except that target specified byJavaType
.<T> T
ObjectMapper. readValue(java.net.URL src, java.lang.Class<T> valueType)
Method to deserialize JSON content from given resource into given Java type.<T> T
ObjectReader. readValue(java.lang.String src)
Method that binds content read from given JSON string, using configuration of this reader.JavaType
AnnotationIntrospector. refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
Method called to find out possible type refinements to use for deserialization.JavaType
AnnotationIntrospector. refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
Method called to find out possible type refinements to use for deserialization, including not just value itself but key and/or content type, if type has those.<T> T
DeserializationContext. reportBadCoercion(JsonDeserializer<?> src, java.lang.Class<?> targetType, java.lang.Object inputValue, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where specific input coercion was not allowed.abstract <T> T
DatabindContext. reportBadDefinition(JavaType type, java.lang.String msg)
Helper method called to indicate a generic problem that stems from type definition(s), not input data, or input/output state; typically this means throwing aInvalidDefinitionException
.<T> T
DatabindContext. reportBadDefinition(java.lang.Class<?> type, java.lang.String msg)
<T> T
DeserializationContext. reportBadDefinition(JavaType type, java.lang.String msg)
<T> T
SerializerProvider. reportBadDefinition(JavaType type, java.lang.String msg)
<T> T
SerializerProvider. reportBadDefinition(JavaType type, java.lang.String msg, java.lang.Throwable cause)
<T> T
SerializerProvider. reportBadDefinition(java.lang.Class<?> raw, java.lang.String msg, java.lang.Throwable cause)
<T> T
DeserializationContext. reportBadMerge(JsonDeserializer<?> deser)
Deprecated.Since 2.10 useDeserializationContext.handleBadMerge(com.fasterxml.jackson.databind.JsonDeserializer<?>)
instead<T> T
DeserializationContext. reportBadPropertyDefinition(BeanDescription bean, BeanPropertyDefinition prop, java.lang.String msg, java.lang.Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific property (of a type), unrelated to actual JSON content to map.<T> T
SerializerProvider. reportBadPropertyDefinition(BeanDescription bean, BeanPropertyDefinition prop, java.lang.String message, java.lang.Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific property (of a type), unrelated to actual JSON content to map.<T> T
DeserializationContext. reportBadTypeDefinition(BeanDescription bean, java.lang.String msg, java.lang.Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific Java type, unrelated to actual JSON content to map.<T> T
SerializerProvider. reportBadTypeDefinition(BeanDescription bean, java.lang.String msg, java.lang.Object... msgArgs)
Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific Java type, unrelated to actual JSON content to map.<T> T
DeserializationContext. reportInputMismatch(BeanProperty prop, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.<T> T
DeserializationContext. reportInputMismatch(JavaType targetType, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.<T> T
DeserializationContext. reportInputMismatch(JsonDeserializer<?> src, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.<T> T
DeserializationContext. reportInputMismatch(java.lang.Class<?> targetType, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.void
DeserializationContext. reportMappingException(java.lang.String msg, java.lang.Object... msgArgs)
Deprecated.Since 2.9: use a more specific method, orDeserializationContext.reportBadDefinition(JavaType, String)
, orDeserializationContext.reportInputMismatch(com.fasterxml.jackson.databind.JsonDeserializer<?>, java.lang.String, java.lang.Object...)
insteadvoid
SerializerProvider. reportMappingProblem(java.lang.String message, java.lang.Object... args)
Helper method called to indicate problem; default behavior is to construct and throw aJsonMappingException
, but in future may collect more than one and only throw after certain number, or at the end of serialization.void
SerializerProvider. reportMappingProblem(java.lang.Throwable t, java.lang.String message, java.lang.Object... msgArgs)
Helper method called to indicate problem; default behavior is to construct and throw aJsonMappingException
, but in future may collect more than one and only throw after certain number, or at the end of serialization.void
DeserializationContext. reportMissingContent(java.lang.String msg, java.lang.Object... msgArgs)
Deprecated.Since 2.9: not clear this ever occurs<T> T
DeserializationContext. reportPropertyInputMismatch(JavaType targetType, java.lang.String propertyName, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.<T> T
DeserializationContext. reportPropertyInputMismatch(java.lang.Class<?> targetType, java.lang.String propertyName, java.lang.String msg, java.lang.Object... msgArgs)
Helper method used to indicate a problem with input in cases where more specificreportXxx()
method was not available.<T> T
DeserializationContext. reportTrailingTokens(java.lang.Class<?> targetType, com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.JsonToken trailingToken)
void
DeserializationContext. reportUnknownProperty(java.lang.Object instanceOrClass, java.lang.String fieldName, JsonDeserializer<?> deser)
<T> T
DeserializationContext. reportUnresolvedObjectId(ObjectIdReader oidReader, java.lang.Object bean)
void
DeserializationContext. reportWrongTokenException(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String msg, java.lang.Object... msgArgs)
Deprecated.void
DeserializationContext. reportWrongTokenException(JavaType targetType, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String msg, java.lang.Object... msgArgs)
Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.void
DeserializationContext. reportWrongTokenException(JsonDeserializer<?> deser, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String msg, java.lang.Object... msgArgs)
Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.void
DeserializationContext. reportWrongTokenException(java.lang.Class<?> targetType, com.fasterxml.jackson.core.JsonToken expToken, java.lang.String msg, java.lang.Object... msgArgs)
Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.JavaType
DatabindContext. resolveAndValidateSubType(JavaType baseType, java.lang.String subClass, PolymorphicTypeValidator ptv)
Lookup method similar toDatabindContext.resolveSubType(com.fasterxml.jackson.databind.JavaType, java.lang.String)
but one that also validates that resulting subtype is valid according to givenPolymorphicTypeValidator
.JavaType
DatabindContext. resolveSubType(JavaType baseType, java.lang.String subClassName)
Lookup method called when code needs to resolve class name from input; usually simple lookup.abstract JsonSerializer<java.lang.Object>
SerializerProvider. serializerInstance(Annotated annotated, java.lang.Object serDef)
Method that can be called to construct and configure serializer instance, either given aClass
to instantiate (with default constructor), or an uninitialized serializer instance.<T> T
ObjectMapper. updateValue(T valueToUpdate, java.lang.Object overrides)
Convenience method similar toObjectMapper.convertValue(Object, JavaType)
but one in whichvoid
ObjectMapper. writeValue(com.fasterxml.jackson.core.JsonGenerator g, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, using providedJsonGenerator
.void
ObjectMapper. writeValue(java.io.File resultFile, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, written to File provided.void
ObjectMapper. writeValue(java.io.OutputStream out, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, using output stream provided (using encodingJsonEncoding.UTF8
).void
ObjectMapper. writeValue(java.io.Writer w, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, using Writer provided.void
ObjectWriter. writeValue(java.io.File resultFile, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, written to File provided.void
ObjectWriter. writeValue(java.io.OutputStream out, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, using output stream provided (using encodingJsonEncoding.UTF8
).void
ObjectWriter. writeValue(java.io.Writer w, java.lang.Object value)
Method that can be used to serialize any Java value as JSON output, using Writer provided.Constructors in com.fasterxml.jackson.databind with parameters of type JsonMappingException Constructor Description RuntimeJsonMappingException(JsonMappingException cause)
RuntimeJsonMappingException(java.lang.String message, JsonMappingException cause)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.deser
Subclasses of JsonMappingException in com.fasterxml.jackson.databind.deser Modifier and Type Class Description class
UnresolvedForwardReference
Exception thrown during deserialization when there are object id that can't be resolved.Methods in com.fasterxml.jackson.databind.deser that throw JsonMappingException Modifier and Type Method Description protected void
BasicDeserializerFactory. _addExplicitAnyCreator(DeserializationContext ctxt, BeanDescription beanDesc, CreatorCollector creators, CreatorCandidate candidate)
Deprecated.protected void
BasicDeserializerFactory. _addExplicitAnyCreator(DeserializationContext ctxt, BeanDescription beanDesc, CreatorCollector creators, CreatorCandidate candidate, ConstructorDetector ctorDetector)
Helper method called when there is explicit "is-creator" marker, but no mode declaration.protected void
BasicDeserializerFactory. _addExplicitConstructorCreators(DeserializationContext ctxt, BasicDeserializerFactory.CreatorCollectionState ccState, boolean findImplicit)
protected void
BasicDeserializerFactory. _addExplicitDelegatingCreator(DeserializationContext ctxt, BeanDescription beanDesc, CreatorCollector creators, CreatorCandidate candidate)
Helper method called when there is the explicit "is-creator" with mode of "delegating"protected void
BasicDeserializerFactory. _addExplicitFactoryCreators(DeserializationContext ctxt, BasicDeserializerFactory.CreatorCollectionState ccState, boolean findImplicit)
protected void
BasicDeserializerFactory. _addExplicitPropertyCreator(DeserializationContext ctxt, BeanDescription beanDesc, CreatorCollector creators, CreatorCandidate candidate)
Helper method called when there is the explicit "is-creator" annotation with mode of "properties-based"protected void
BasicDeserializerFactory. _addImplicitConstructorCreators(DeserializationContext ctxt, BasicDeserializerFactory.CreatorCollectionState ccState, java.util.List<CreatorCandidate> ctorCandidates)
protected void
BasicDeserializerFactory. _addImplicitFactoryCreators(DeserializationContext ctxt, BasicDeserializerFactory.CreatorCollectionState ccState, java.util.List<CreatorCandidate> factoryCandidates)
protected void
BasicDeserializerFactory. _addRecordConstructor(DeserializationContext ctxt, BasicDeserializerFactory.CreatorCollectionState ccState, AnnotatedConstructor canonical, java.util.List<java.lang.String> implicitNames)
Helper method called when ajava.lang.Record
definition's "canonical" constructor is to be used: if so, we have implicit names to consider.protected ValueInstantiator
BasicDeserializerFactory. _constructDefaultValueInstantiator(DeserializationContext ctxt, BeanDescription beanDesc)
Method that will construct standard defaultValueInstantiator
using annotations (like @JsonCreator) and visibility rulesprotected JsonDeserializer<java.lang.Object>
DeserializerCache. _createAndCache2(DeserializationContext ctxt, DeserializerFactory factory, JavaType type)
Method that handles actual construction (via factory) and caching (both intermediate and eventual)protected JsonDeserializer<java.lang.Object>
DeserializerCache. _createAndCacheValueDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type)
Method that will try to create a deserializer for given type, and resolve and cache it if necessaryprotected JsonDeserializer<java.lang.Object>
DeserializerCache. _createDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type)
Method that does the heavy lifting of checking for per-type annotations, find out full type, and figure out which actual factory method to call.protected JsonDeserializer<?>
DeserializerCache. _createDeserializer2(DeserializationContext ctxt, DeserializerFactory factory, JavaType type, BeanDescription beanDesc)
protected java.util.Map<AnnotatedWithParams,BeanPropertyDefinition[]>
BasicDeserializerFactory. _findCreatorsFromProperties(DeserializationContext ctxt, BeanDescription beanDesc)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomArrayDeserializer(ArrayType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
protected JsonDeserializer<java.lang.Object>
BasicDeserializerFactory. _findCustomBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomCollectionLikeDeserializer(CollectionLikeType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomEnumDeserializer(java.lang.Class<?> type, DeserializationConfig config, BeanDescription beanDesc)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomMapDeserializer(MapType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomMapLikeDeserializer(MapLikeType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomReferenceDeserializer(ReferenceType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer contentTypeDeserializer, JsonDeserializer<?> contentDeserializer)
protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomTreeNodeDeserializer(java.lang.Class<? extends JsonNode> type, DeserializationConfig config, BeanDescription beanDesc)
protected NameTransformer
BeanDeserializerBase. _findPropertyUnwrapper(DeserializationContext ctxt, SettableBeanProperty prop)
Helper method called to see if given property might be so-called unwrapped property: these require special handling.protected JavaType
BasicDeserializerFactory. _findRemappedType(DeserializationConfig config, java.lang.Class<?> rawType)
protected JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. _findUnsupportedTypeDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Helper method called to see if given type, otherwise to be taken as POJO type, is "known but not supported" JDK type, and if so, return alternate handler (deserializer).protected BeanDeserializerBase
BeanDeserializerBase. _handleByNameInclusion(DeserializationContext ctxt, AnnotationIntrospector intr, BeanDeserializerBase contextual, AnnotatedMember accessor)
protected KeyDeserializer
DeserializerCache. _handleUnknownKeyDeserializer(DeserializationContext ctxt, JavaType type)
protected JsonDeserializer<java.lang.Object>
DeserializerCache. _handleUnknownValueDeserializer(DeserializationContext ctxt, JavaType type)
protected void
BasicDeserializerFactory. _reportUnwrappedCreatorProperty(DeserializationContext ctxt, BeanDescription beanDesc, AnnotatedParameter param)
protected SettableBeanProperty
BeanDeserializerBase. _resolvedObjectIdProperty(DeserializationContext ctxt, SettableBeanProperty prop)
Method that wraps given property withObjectIdReferenceProperty
in case where object id resolution is required.protected SettableBeanProperty
BeanDeserializerBase. _resolveManagedReferenceProperty(DeserializationContext ctxt, SettableBeanProperty prop)
Helper method called to see if given property is part of 'managed' property pair (managed + back reference), and if so, handle resolution details.protected SettableBeanProperty
BeanDeserializerBase. _resolveMergeAndNullSettings(DeserializationContext ctxt, SettableBeanProperty prop, PropertyMetadata propMetadata)
protected void
BasicDeserializerFactory. _validateNamedPropertyParameter(DeserializationContext ctxt, BeanDescription beanDesc, CreatorCandidate candidate, int paramIndex, PropertyName name, com.fasterxml.jackson.annotation.JacksonInject.Value injectId)
protected void
BeanDeserializerFactory. _validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
ValueInstantiator
BasicDeserializerFactory. _valueInstantiatorInstance(DeserializationConfig config, Annotated annotated, java.lang.Object instDef)
protected void
BeanDeserializerFactory. addBackReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
Method that will find if bean has any managed- or back-reference properties, and if so add them to bean, to be linked during resolution phase.protected void
BeanDeserializerFactory. addBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
Method called to figure out settable properties for the bean deserializer to use.protected void
BeanDeserializerFactory. addInjectables(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
Method called locate all members used for value injection (if any), constructorValueInjector
instances, and add them to builder.protected void
BeanDeserializerFactory. addObjectIdReader(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
protected void
BeanDeserializerFactory. addReferenceProperties(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder)
Deprecated.JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. buildBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Method that is to actually build a bean deserializer instance.JsonDeserializer<?>
BeanDeserializerBuilder. buildBuilderBased(JavaType valueType, java.lang.String expBuildMethodName)
Method for constructing a specialized deserializer that uses additional external Builder object during data binding.protected JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. buildBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription builderDesc)
Method for constructing a bean deserializer that uses specified intermediate Builder for binding data, and construction of the value instance.JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. buildThrowableDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
protected SettableAnyProperty
BeanDeserializerFactory. constructAnySetter(DeserializationContext ctxt, BeanDescription beanDesc, AnnotatedMember mutator)
Method called to construct fallbackSettableAnyProperty
for handling unknown bean properties, given a method that has been designated as such setter.protected SettableBeanProperty
BasicDeserializerFactory. constructCreatorProperty(DeserializationContext ctxt, BeanDescription beanDesc, PropertyName name, int index, AnnotatedParameter param, com.fasterxml.jackson.annotation.JacksonInject.Value injectable)
Method that will construct a property object that represents a logical property passed via Creator (constructor or static factory method)protected SettableBeanProperty
BeanDeserializerFactory. constructSettableProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef, JavaType propType0)
Method that will construct a regular bean property setter using the given setter method.protected SettableBeanProperty
BeanDeserializerFactory. constructSetterlessProperty(DeserializationContext ctxt, BeanDescription beanDesc, BeanPropertyDefinition propDef)
Method that will construct a regular bean property setter using the given setter method.JsonDeserializer<?>
BasicDeserializerFactory. createArrayDeserializer(DeserializationContext ctxt, ArrayType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createArrayDeserializer(DeserializationContext ctxt, ArrayType type, BeanDescription beanDesc)
Method called to create (or, for completely immutable deserializers, reuse) a deserializer that can convert JSON content into values of specified Java type.JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Method thatDeserializerCache
s call to create a new deserializer for types other than Collections, Maps, arrays and enums.abstract JsonDeserializer<java.lang.Object>
DeserializerFactory. createBeanDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Method called to create (or, for completely immutable deserializers, reuse) a deserializer that can convert JSON content into values of specified Java "bean" (POJO) type.JsonDeserializer<java.lang.Object>
BeanDeserializerFactory. createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType valueType, BeanDescription valueBeanDesc, java.lang.Class<?> builderClass)
abstract JsonDeserializer<java.lang.Object>
DeserializerFactory. createBuilderBasedDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc, java.lang.Class<?> builderClass)
Method called to create a deserializer that will use specified Builder class for building value instances.JsonDeserializer<?>
BasicDeserializerFactory. createCollectionDeserializer(DeserializationContext ctxt, CollectionType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createCollectionDeserializer(DeserializationContext ctxt, CollectionType type, BeanDescription beanDesc)
JsonDeserializer<?>
BasicDeserializerFactory. createCollectionLikeDeserializer(DeserializationContext ctxt, CollectionLikeType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createCollectionLikeDeserializer(DeserializationContext ctxt, CollectionLikeType type, BeanDescription beanDesc)
JsonDeserializer<?>
AbstractDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
BeanDeserializerBase. createContextual(DeserializationContext ctxt, BeanProperty property)
Although most of post-processing is done in resolve(), we only get access to referring property's annotations here; and this is needed to support per-property ObjectIds.JsonDeserializer<?>
ContextualDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to see if a different (or differently configured) deserializer is needed to deserialize values of specified property.KeyDeserializer
ContextualKeyDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to see if a different (or differently configured) key deserializer is needed to deserialize keys of specified Map property.ValueInstantiator
ValueInstantiator. createContextual(DeserializationContext ctxt, BeanDescription beanDesc)
"Contextualization" method that is called after construction but before first use, to allow instantiator access to context needed to possible resolve its dependencies.ValueInstantiator
ValueInstantiator.Delegating. createContextual(DeserializationContext ctxt, BeanDescription beanDesc)
JsonDeserializer<?>
BasicDeserializerFactory. createEnumDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Factory method for constructing serializers ofEnum
types.abstract JsonDeserializer<?>
DeserializerFactory. createEnumDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
KeyDeserializer
BasicDeserializerFactory. createKeyDeserializer(DeserializationContext ctxt, JavaType type)
abstract KeyDeserializer
DeserializerFactory. createKeyDeserializer(DeserializationContext ctxt, JavaType type)
Method called to find if factory knows how to create a key deserializer for specified type; currently this means checking if a module has registered possible deserializers.JsonDeserializer<?>
BasicDeserializerFactory. createMapDeserializer(DeserializationContext ctxt, MapType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createMapDeserializer(DeserializationContext ctxt, MapType type, BeanDescription beanDesc)
JsonDeserializer<?>
BasicDeserializerFactory. createMapLikeDeserializer(DeserializationContext ctxt, MapLikeType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createMapLikeDeserializer(DeserializationContext ctxt, MapLikeType type, BeanDescription beanDesc)
JsonDeserializer<?>
BasicDeserializerFactory. createReferenceDeserializer(DeserializationContext ctxt, ReferenceType type, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createReferenceDeserializer(DeserializationContext ctxt, ReferenceType type, BeanDescription beanDesc)
JsonDeserializer<?>
BasicDeserializerFactory. createTreeDeserializer(DeserializationConfig config, JavaType nodeType, BeanDescription beanDesc)
abstract JsonDeserializer<?>
DeserializerFactory. createTreeDeserializer(DeserializationConfig config, JavaType type, BeanDescription beanDesc)
Method called to create and return a deserializer that can construct JsonNode(s) from JSON content.void
SettableBeanProperty. depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
JsonDeserializer<java.lang.Object>
DefaultDeserializationContext. deserializerInstance(Annotated ann, java.lang.Object deserDef)
protected java.util.List<BeanPropertyDefinition>
BeanDeserializerFactory. filterBeanProps(DeserializationContext ctxt, BeanDescription beanDesc, BeanDeserializerBuilder builder, java.util.List<BeanPropertyDefinition> propDefsIn, java.util.Set<java.lang.String> ignored)
Deprecated.in 2.12, remove from 3.0JsonDeserializer<?>
Deserializers.Base. findArrayDeserializer(ArrayType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
JsonDeserializer<?>
Deserializers. findArrayDeserializer(ArrayType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified array type.JsonDeserializer<?>
Deserializers.Base. findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
JsonDeserializer<?>
Deserializers. findBeanDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
Method called to locate deserializer for specified value type which does not belong to any other category (not an Enum, Collection, Map, Array, reference value or tree node)JsonDeserializer<?>
Deserializers.Base. findCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
JsonDeserializer<?>
Deserializers. findCollectionDeserializer(CollectionType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specifiedCollection
(List, Set etc) type.JsonDeserializer<?>
Deserializers.Base. findCollectionLikeDeserializer(CollectionLikeType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
JsonDeserializer<?>
Deserializers. findCollectionLikeDeserializer(CollectionLikeType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified "Collection-like" type (one that acts likeCollection
but does not implement it).protected JsonDeserializer<java.lang.Object>
BasicDeserializerFactory. findContentDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann)
protected Converter<java.lang.Object,java.lang.Object>
DeserializerCache. findConverter(DeserializationContext ctxt, Annotated a)
protected JsonDeserializer<java.lang.Object>
BeanDeserializerBase. findConvertingDeserializer(DeserializationContext ctxt, SettableBeanProperty prop)
Helper method that can be used to see if specified property is annotated to indicate use of a converter for property value (in case of container types, it is container type itself, not key or content type).protected JsonDeserializer<java.lang.Object>
DeserializerCache. findConvertingDeserializer(DeserializationContext ctxt, Annotated a, JsonDeserializer<java.lang.Object> deser)
Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverter
is to be used; and if so, to construct and return suitable serializer for it.JsonDeserializer<?>
BasicDeserializerFactory. findDefaultDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Helper method called to find one of default serializers for "well-known" platform types: JDK-provided types, and small number of public Jackson API types.protected JsonDeserializer<java.lang.Object>
BasicDeserializerFactory. findDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann)
Helper method called to check if a class or method has annotation that tells which class to use for deserialization; and if so, to instantiate, that deserializer to use.protected JsonDeserializer<java.lang.Object>
DeserializerCache. findDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann)
Helper method called to check if a class or method has annotation that tells which class to use for deserialization.JsonDeserializer<?>
Deserializers.Base. findEnumDeserializer(java.lang.Class<?> type, DeserializationConfig config, BeanDescription beanDesc)
JsonDeserializer<?>
Deserializers. findEnumDeserializer(java.lang.Class<?> type, DeserializationConfig config, BeanDescription beanDesc)
Method called to locate deserializer for specifiedEnum
type.java.lang.Object
CreatorProperty. findInjectableValue(DeserializationContext context, java.lang.Object beanInstance)
Deprecated.KeyDeserializer
DeserializerCache. findKeyDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType type)
Method called to get hold of a deserializer to use for deserializing keys forMap
.KeyDeserializer
KeyDeserializers. findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
protected KeyDeserializer
BasicDeserializerFactory. findKeyDeserializerFromAnnotation(DeserializationContext ctxt, Annotated ann)
Helper method called to check if a class or method has annotation that tells which class to use for deserialization ofMap
keys.JsonDeserializer<?>
Deserializers.Base. findMapDeserializer(MapType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
JsonDeserializer<?>
Deserializers. findMapDeserializer(MapType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
Method called to locate deserializer for specifiedMap
type.JsonDeserializer<?>
Deserializers.Base. findMapLikeDeserializer(MapLikeType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
JsonDeserializer<?>
Deserializers. findMapLikeDeserializer(MapLikeType type, DeserializationConfig config, BeanDescription beanDesc, KeyDeserializer keyDeserializer, TypeDeserializer elementTypeDeserializer, JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified "Map-like" type (one that acts likeMap
but does not implement it).protected JsonDeserializer<?>
BasicDeserializerFactory. findOptionalStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Overridable method called after checking all other types.TypeDeserializer
BasicDeserializerFactory. findPropertyContentTypeDeserializer(DeserializationConfig config, JavaType containerType, AnnotatedMember propertyEntity)
Method called to find and create a type information deserializer for values of given container (list, array, map) property, if one is needed.TypeDeserializer
BasicDeserializerFactory. findPropertyTypeDeserializer(DeserializationConfig config, JavaType baseType, AnnotatedMember annotated)
Method called to create a type information deserializer for values of given non-container property, if one is needed.JsonDeserializer<?>
Deserializers.Base. findReferenceDeserializer(ReferenceType refType, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer contentTypeDeserializer, JsonDeserializer<?> contentDeserializer)
JsonDeserializer<?>
Deserializers. findReferenceDeserializer(ReferenceType refType, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer contentTypeDeserializer, JsonDeserializer<?> contentDeserializer)
Method called to locate deserializer for value that is of referential type,protected JsonDeserializer<?>
BeanDeserializerFactory. findStdDeserializer(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
Method called byBeanDeserializerFactory
to see if there might be a standard deserializer registered for given type.JsonDeserializer<?>
Deserializers.Base. findTreeNodeDeserializer(java.lang.Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc)
JsonDeserializer<?>
Deserializers. findTreeNodeDeserializer(java.lang.Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc)
Method called to locate deserializer for specified JSON tree node type.TypeDeserializer
BasicDeserializerFactory. findTypeDeserializer(DeserializationConfig config, JavaType baseType)
abstract TypeDeserializer
DeserializerFactory. findTypeDeserializer(DeserializationConfig config, JavaType baseType)
Method called to find and create a type information deserializer for given base type, if one is needed.JsonDeserializer<java.lang.Object>
DeserializerCache. findValueDeserializer(DeserializationContext ctxt, DeserializerFactory factory, JavaType propertyType)
Method called to get hold of a deserializer for a value of given type; or if no such deserializer can be found, a default handler (which may do a best-effort generic serialization or just simply throw an exception when invoked).ValueInstantiator
BasicDeserializerFactory. findValueInstantiator(DeserializationContext ctxt, BeanDescription beanDesc)
Value instantiator is created both based on creator annotations, and on optional externally provided instantiators (registered through module interface).abstract ValueInstantiator
DeserializerFactory. findValueInstantiator(DeserializationContext ctxt, BeanDescription beanDesc)
Method that is to find all creators (constructors, factory methods) for the bean type to deserialize.java.lang.Object
BeanDeserializerBase. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
NullValueProvider. getNullValue(DeserializationContext ctxt)
Method called to possibly convert incoming `null` token (read via underlying streaming input source) into other value of type accessor supports.boolean
DeserializerCache. hasValueDeserializerFor(DeserializationContext ctxt, DeserializerFactory factory, JavaType type)
Method called to find out whether provider would be able to find a deserializer for given type, using a root reference (i.e.KeyDeserializer
DefaultDeserializationContext. keyDeserializerInstance(Annotated ann, java.lang.Object deserDef)
JavaType
BasicDeserializerFactory. mapAbstractType(DeserializationConfig config, JavaType type)
abstract JavaType
DeserializerFactory. mapAbstractType(DeserializationConfig config, JavaType type)
Method that can be called to try to resolve an abstract type (interface, abstract class) into a concrete type, or at least something "more concrete" (abstract class instead of interface).protected JavaType
BeanDeserializerFactory. materializeAbstractType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
protected JavaType
BasicDeserializerFactory. modifyTypeByAnnotation(DeserializationContext ctxt, Annotated a, JavaType type)
void
BeanDeserializerBase. resolve(DeserializationContext ctxt)
Method called to finalize setup of this deserializer, after deserializer itself has been registered.void
ResolvableDeserializer. resolve(DeserializationContext ctxt)
Method called after deserializer instance has been constructed (and registered as necessary by provider objects), but before it has returned it to the caller.protected JavaType
BasicDeserializerFactory. resolveMemberAndTypeAnnotations(DeserializationContext ctxt, AnnotatedMember member, JavaType type)
Helper method used to resolve additional type-related annotation information like type overrides, or handler (serializer, deserializer) overrides, so that from declared field, property or constructor parameter type is used as the base and modified based on annotations, if any.protected JavaType
BasicDeserializerFactory. resolveType(DeserializationContext ctxt, BeanDescription beanDesc, JavaType type, AnnotatedMember member)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.deser.impl
Methods in com.fasterxml.jackson.databind.deser.impl that throw JsonMappingException Modifier and Type Method Description protected java.lang.Object
PropertyValueBuffer. _findMissing(SettableBeanProperty prop)
static PropertyBasedCreator
PropertyBasedCreator. construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps)
Deprecated.static PropertyBasedCreator
PropertyBasedCreator. construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, boolean caseInsensitive)
Factory method used for building actual instances to be used with types OTHER than POJOs.static PropertyBasedCreator
PropertyBasedCreator. construct(DeserializationContext ctxt, ValueInstantiator valueInstantiator, SettableBeanProperty[] srcCreatorProps, BeanPropertyMap allProperties)
Factory method used for building actual instances to be used with POJOS: resolves deserializers, checks for "null values".ValueInstantiator
CreatorCollector. constructValueInstantiator(DeserializationContext ctxt)
static JsonDeserializer<?>
JavaUtilCollectionsDeserializers. findForCollection(DeserializationContext ctxt, JavaType type)
static JsonDeserializer<?>
JavaUtilCollectionsDeserializers. findForMap(DeserializationContext ctxt, JavaType type)
java.lang.Object
ValueInjector. findValue(DeserializationContext context, java.lang.Object beanInstance)
java.lang.Object
TypeWrappedDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
NullsAsEmptyProvider. getNullValue(DeserializationContext ctxt)
java.lang.Object
NullsFailProvider. getNullValue(DeserializationContext ctxt)
java.lang.Object
TypeWrappedDeserializer. getNullValue(DeserializationContext ctxt)
java.lang.Object
PropertyValueBuffer. getParameter(SettableBeanProperty prop)
A variation ofPropertyValueBuffer.getParameters(SettableBeanProperty[])
that accepts a single property.java.lang.Object[]
PropertyValueBuffer. getParameters(SettableBeanProperty[] props)
Method called to do necessary post-processing such as injection of values and verification of values for required properties, after eitherPropertyValueBuffer.assignParameter(SettableBeanProperty, Object)
returnstrue
(to indicate all creator properties are found), or when then whole JSON Object has been processed, -
Uses of JsonMappingException in com.fasterxml.jackson.databind.deser.std
Methods in com.fasterxml.jackson.databind.deser.std that return JsonMappingException Modifier and Type Method Description protected JsonMappingException
StdValueInstantiator. rewrapCtorProblem(DeserializationContext ctxt, java.lang.Throwable t)
Method that subclasses may call for standard handling of an exception thrown when calling constructor or factory method.protected JsonMappingException
StdValueInstantiator. unwrapAndWrapException(DeserializationContext ctxt, java.lang.Throwable t)
protected JsonMappingException
StdValueInstantiator. wrapAsJsonMappingException(DeserializationContext ctxt, java.lang.Throwable t)
Helper method that will return givenThrowable
case as aJsonMappingException
(if it is of that type), or callDeserializationContext.instantiationException(Class, Throwable)
to produce and return suitableJsonMappingException
.protected JsonMappingException
StdValueInstantiator. wrapException(java.lang.Throwable t)
Methods in com.fasterxml.jackson.databind.deser.std that throw JsonMappingException Modifier and Type Method Description protected boolean
StdDeserializer. _checkTextualNull(DeserializationContext ctxt, java.lang.String text)
Method called when otherwise unrecognized String value is encountered for a non-primitive type: should see if it is String value"null"
, and if so, whether it is acceptable according to configuration or notprotected java.lang.Object
StdDeserializer. _coerceEmptyString(DeserializationContext ctxt, boolean isPrimitive)
Deprecated.Since 2.12protected java.lang.Object
StdDeserializer. _coerceNullToken(DeserializationContext ctxt, boolean isPrimitive)
Deprecated.protected java.lang.Object
StdDeserializer. _coerceTextualNull(DeserializationContext ctxt, boolean isPrimitive)
Deprecated.protected JsonDeserializer<java.lang.Object>
UntypedObjectDeserializer. _findCustomDeser(DeserializationContext ctxt, JavaType type)
protected NullValueProvider
StdDeserializer. _findNullProvider(DeserializationContext ctxt, BeanProperty prop, com.fasterxml.jackson.annotation.Nulls nulls, JsonDeserializer<?> valueDeser)
protected void
StdDeserializer. _reportFailedNullCoerce(DeserializationContext ctxt, boolean state, java.lang.Enum<?> feature, java.lang.String inputDesc)
protected void
StdDeserializer. _verifyNullForPrimitive(DeserializationContext ctxt)
Method called to verify thatnull
token from input is acceptable for primitive (unboxed) target type.protected void
StdDeserializer. _verifyNullForPrimitiveCoercion(DeserializationContext ctxt, java.lang.String str)
Method called to verify that text value"null"
from input is acceptable for primitive (unboxed) target type.protected void
StdDeserializer. _verifyNullForScalarCoercion(DeserializationContext ctxt, java.lang.String str)
Deprecated.protected void
StdDeserializer. _verifyStringForScalarCoercion(DeserializationContext ctxt, java.lang.String str)
Deprecated.protected java.util.EnumMap<?,?>
EnumMapDeserializer. constructMap(DeserializationContext ctxt)
CollectionDeserializer
CollectionDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to finalize setup of this deserializer, when it is known for which property deserializer is needed for.JsonDeserializer<?>
DateDeserializers.DateBasedDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
DelegatingDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
EnumDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
EnumMapDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to finalize setup of this deserializer, when it is known for which property deserializer is needed for.JsonDeserializer<?>
EnumSetDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
MapDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to finalize setup of this deserializer, when it is known for which property deserializer is needed for.JsonDeserializer<?>
MapEntryDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Method called to finalize setup of this deserializer, when it is known for which property deserializer is needed for.JsonDeserializer<?>
ObjectArrayDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
PrimitiveArrayDeserializers. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
ReferenceTypeDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
StdDelegatingDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
StringArrayDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
Contextualization is needed to see whether we can "inline" deserialization of String values, or if we have to use separate value deserializer.JsonDeserializer<?>
StringCollectionDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
JsonDeserializer<?>
UntypedObjectDeserializer. createContextual(DeserializationContext ctxt, BeanProperty property)
We only use contextualization for optimizing the case where no customization occurred; if so, can slip in a more streamlined version.protected NullValueProvider
StdDeserializer. findContentNullProvider(DeserializationContext ctxt, BeanProperty prop, JsonDeserializer<?> valueDeser)
Method called to findNullValueProvider
for a contents of a structured primary property (Collection, Map, array), using "content nulls" setting.protected com.fasterxml.jackson.annotation.Nulls
StdDeserializer. findContentNullStyle(DeserializationContext ctxt, BeanProperty prop)
protected JsonDeserializer<?>
StdDeserializer. findConvertingContentDeserializer(DeserializationContext ctxt, BeanProperty prop, JsonDeserializer<?> existingDeserializer)
Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)protected JsonDeserializer<java.lang.Object>
StdDeserializer. findDeserializer(DeserializationContext ctxt, JavaType type, BeanProperty property)
Helper method used to locate deserializers for properties the type this deserializer handles contains (usually for properties of bean types)KeyDeserializer
StdKeyDeserializers. findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
protected NullValueProvider
StdDeserializer. findValueNullProvider(DeserializationContext ctxt, SettableBeanProperty prop, PropertyMetadata propMetadata)
Method called to findNullValueProvider
for a primary property, using "value nulls" setting.java.lang.Object
AtomicBooleanDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
AtomicIntegerDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
AtomicLongDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
AtomicReferenceDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
ContainerDeserializerBase. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
DelegatingDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
EnumDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
EnumMapDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
EnumSetDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
FromStringDeserializer.Std. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
NumberDeserializers.PrimitiveOrWrapperDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
ObjectArrayDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
PrimitiveArrayDeserializers. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
ReferenceTypeDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
StringArrayDeserializer. getEmptyValue(DeserializationContext ctxt)
java.lang.Object
StringDeserializer. getEmptyValue(DeserializationContext ctxt)
java.util.concurrent.atomic.AtomicReference<java.lang.Object>
AtomicReferenceDeserializer. getNullValue(DeserializationContext ctxt)
java.lang.Object
DelegatingDeserializer. getNullValue(DeserializationContext ctxt)
T
NumberDeserializers.PrimitiveOrWrapperDeserializer. getNullValue(DeserializationContext ctxt)
abstract T
ReferenceTypeDeserializer. getNullValue(DeserializationContext ctxt)
void
DelegatingDeserializer. resolve(DeserializationContext ctxt)
void
EnumMapDeserializer. resolve(DeserializationContext ctxt)
void
MapDeserializer. resolve(DeserializationContext ctxt)
void
StdDelegatingDeserializer. resolve(DeserializationContext ctxt)
void
StdNodeBasedDeserializer. resolve(DeserializationContext ctxt)
void
UntypedObjectDeserializer. resolve(DeserializationContext ctxt)
We need to implement this method to properly find things to delegate to: it cannot be done earlier since delegated deserializers almost certainly require access to this instance (at least "List" and "Map" ones) -
Uses of JsonMappingException in com.fasterxml.jackson.databind.exc
Subclasses of JsonMappingException in com.fasterxml.jackson.databind.exc Modifier and Type Class Description class
IgnoredPropertyException
SpecializedJsonMappingException
sub-class used to indicate case where an explicitly ignored property is encountered, and mapper is configured to consider this an error.class
InvalidDefinitionException
Intermediate exception type used as the base class for allJsonMappingException
s that are due to problems with target type definition; usually a problem with annotations used on a class or its properties.class
InvalidFormatException
Specialized sub-class ofMismatchedInputException
that is used when the underlying problem appears to be that of bad formatting of a value to deserialize.class
InvalidNullException
Exception thrown if a `null` value is being encountered for a property designed as "fail on null" property (seeJsonSetter
).class
InvalidTypeIdException
Exception thrown when resolution of a type id fails.class
MismatchedInputException
General exception type used as the base class for allJsonMappingException
s that are due to input not mapping to target definition; these are typically considered "client errors" since target type definition itself is not the root cause but mismatching input.class
PropertyBindingException
Base class forJsonMappingException
s that are specifically related to problems related to binding an individual property.class
UnrecognizedPropertyException
SpecializedJsonMappingException
sub-class specifically used to indicate problems due to encountering a JSON property that could not be mapped to an Object property (via getter, constructor argument or field).class
ValueInstantiationException
Exception type used for generic failures during processing byValueInstantiator
: commonly used to wrap exceptions thrown by constructor or factory method. -
Uses of JsonMappingException in com.fasterxml.jackson.databind.ext
Methods in com.fasterxml.jackson.databind.ext that throw JsonMappingException Modifier and Type Method Description void
CoreXMLSerializers.XMLGregorianCalendarSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
DOMSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
SqlBlobSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
JsonSerializer<?>
CoreXMLSerializers.XMLGregorianCalendarSerializer. createContextual(SerializerProvider prov, BeanProperty property)
JsonDeserializer<?>
OptionalHandlerFactory. findDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.introspect
Methods in com.fasterxml.jackson.databind.introspect that throw JsonMappingException Modifier and Type Method Description JavaType
AnnotationIntrospectorPair. refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
JavaType
JacksonAnnotationIntrospector. refineDeserializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
JavaType
AnnotationIntrospectorPair. refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
JavaType
JacksonAnnotationIntrospector. refineSerializationType(MapperConfig<?> config, Annotated a, JavaType baseType)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.jsonFormatVisitors
Methods in com.fasterxml.jackson.databind.jsonFormatVisitors that throw JsonMappingException Modifier and Type Method Description void
JsonFormatVisitable. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Get the representation of the schema to which this serializer will conform.JsonAnyFormatVisitor
JsonFormatVisitorWrapper.Base. expectAnyFormat(JavaType type)
JsonAnyFormatVisitor
JsonFormatVisitorWrapper. expectAnyFormat(JavaType type)
JsonArrayFormatVisitor
JsonFormatVisitorWrapper.Base. expectArrayFormat(JavaType type)
JsonArrayFormatVisitor
JsonFormatVisitorWrapper. expectArrayFormat(JavaType type)
JsonBooleanFormatVisitor
JsonFormatVisitorWrapper.Base. expectBooleanFormat(JavaType type)
JsonBooleanFormatVisitor
JsonFormatVisitorWrapper. expectBooleanFormat(JavaType type)
JsonIntegerFormatVisitor
JsonFormatVisitorWrapper.Base. expectIntegerFormat(JavaType type)
JsonIntegerFormatVisitor
JsonFormatVisitorWrapper. expectIntegerFormat(JavaType type)
JsonMapFormatVisitor
JsonFormatVisitorWrapper.Base. expectMapFormat(JavaType type)
JsonMapFormatVisitor
JsonFormatVisitorWrapper. expectMapFormat(JavaType type)
Method called when type is of JavaMap
type, and will be serialized as a JSON Object.JsonNullFormatVisitor
JsonFormatVisitorWrapper.Base. expectNullFormat(JavaType type)
JsonNullFormatVisitor
JsonFormatVisitorWrapper. expectNullFormat(JavaType type)
JsonNumberFormatVisitor
JsonFormatVisitorWrapper.Base. expectNumberFormat(JavaType type)
JsonNumberFormatVisitor
JsonFormatVisitorWrapper. expectNumberFormat(JavaType type)
JsonObjectFormatVisitor
JsonFormatVisitorWrapper.Base. expectObjectFormat(JavaType type)
JsonObjectFormatVisitor
JsonFormatVisitorWrapper. expectObjectFormat(JavaType type)
JsonStringFormatVisitor
JsonFormatVisitorWrapper.Base. expectStringFormat(JavaType type)
JsonStringFormatVisitor
JsonFormatVisitorWrapper. expectStringFormat(JavaType type)
void
JsonArrayFormatVisitor.Base. itemsFormat(JsonFormatTypes format)
void
JsonArrayFormatVisitor.Base. itemsFormat(JsonFormatVisitable handler, JavaType elementType)
void
JsonArrayFormatVisitor. itemsFormat(JsonFormatTypes format)
Visit method that is called if the content type is a simple scalar type likeJsonFormatTypes.STRING
(but not for structured types likeJsonFormatTypes.OBJECT
since they would be missing type information).void
JsonArrayFormatVisitor. itemsFormat(JsonFormatVisitable handler, JavaType elementType)
Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).void
JsonMapFormatVisitor.Base. keyFormat(JsonFormatVisitable handler, JavaType keyType)
void
JsonMapFormatVisitor. keyFormat(JsonFormatVisitable handler, JavaType keyType)
Visit method called to indicate type of keys of the Map type being visitedvoid
JsonObjectFormatVisitor.Base. optionalProperty(BeanProperty prop)
void
JsonObjectFormatVisitor.Base. optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor. optionalProperty(BeanProperty writer)
void
JsonObjectFormatVisitor. optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor.Base. property(BeanProperty prop)
void
JsonObjectFormatVisitor.Base. property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
JsonObjectFormatVisitor. property(BeanProperty writer)
Callback method called when a POJO property is being traversed.void
JsonObjectFormatVisitor. property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMap
type) is being traversed.void
JsonMapFormatVisitor.Base. valueFormat(JsonFormatVisitable handler, JavaType valueType)
void
JsonMapFormatVisitor. valueFormat(JsonFormatVisitable handler, JavaType valueType)
Visit method called afterJsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType)
to allow visiting of the value type -
Uses of JsonMappingException in com.fasterxml.jackson.databind.jsonschema
Methods in com.fasterxml.jackson.databind.jsonschema that throw JsonMappingException Modifier and Type Method Description JsonNode
SchemaAware. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Get the representation of the schema to which this serializer will conform.JsonNode
SchemaAware. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Get the representation of the schema to which this serializer will conform. -
Uses of JsonMappingException in com.fasterxml.jackson.databind.jsontype
Methods in com.fasterxml.jackson.databind.jsontype that throw JsonMappingException Modifier and Type Method Description PolymorphicTypeValidator.Validity
BasicPolymorphicTypeValidator. validateSubClassName(MapperConfig<?> ctxt, JavaType baseType, java.lang.String subClassName)
PolymorphicTypeValidator.Validity
PolymorphicTypeValidator.Base. validateSubClassName(MapperConfig<?> config, JavaType baseType, java.lang.String subClassName)
abstract PolymorphicTypeValidator.Validity
PolymorphicTypeValidator. validateSubClassName(MapperConfig<?> config, JavaType baseType, java.lang.String subClassName)
Method called after intended class name for subtype has been read (and in case of minimal class name, expanded to fully-qualified class name) but before attempt is made to look up actualClass
orJavaType
.PolymorphicTypeValidator.Validity
BasicPolymorphicTypeValidator. validateSubType(MapperConfig<?> ctxt, JavaType baseType, JavaType subType)
PolymorphicTypeValidator.Validity
PolymorphicTypeValidator.Base. validateSubType(MapperConfig<?> config, JavaType baseType, JavaType subType)
abstract PolymorphicTypeValidator.Validity
PolymorphicTypeValidator. validateSubType(MapperConfig<?> config, JavaType baseType, JavaType subType)
Method called after class name has been resolved to actual type, in cases where previous call toPolymorphicTypeValidator.validateSubClassName(com.fasterxml.jackson.databind.cfg.MapperConfig<?>, com.fasterxml.jackson.databind.JavaType, java.lang.String)
returnedPolymorphicTypeValidator.Validity.INDETERMINATE
. -
Uses of JsonMappingException in com.fasterxml.jackson.databind.jsontype.impl
Methods in com.fasterxml.jackson.databind.jsontype.impl that throw JsonMappingException Modifier and Type Method Description void
SubTypeValidator. validateSubType(DeserializationContext ctxt, JavaType type, BeanDescription beanDesc)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.module
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.ser
Methods in com.fasterxml.jackson.databind.ser that throw JsonMappingException Modifier and Type Method Description protected MapSerializer
BasicSerializerFactory. _checkMapContentInclusion(SerializerProvider prov, BeanDescription beanDesc, MapSerializer mapSer)
Helper method that does figures out content inclusion value to use, if any, and construct re-configuredMapSerializer
appropriately.protected BeanPropertyWriter
PropertyBuilder. _constructPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, java.lang.Object suppressableValue, java.lang.Class<?>[] includeInViews)
Overridable factory method for actual construction ofBeanPropertyWriter
; often needed if subclassingPropertyBuilder.buildWriter(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition, com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.JsonSerializer<?>, com.fasterxml.jackson.databind.jsontype.TypeSerializer, com.fasterxml.jackson.databind.jsontype.TypeSerializer, com.fasterxml.jackson.databind.introspect.AnnotatedMember, boolean)
method.protected BeanPropertyWriter
BeanSerializerFactory. _constructWriter(SerializerProvider prov, BeanPropertyDefinition propDef, PropertyBuilder pb, boolean staticTyping, AnnotatedMember accessor)
Secondary helper method for constructingBeanPropertyWriter
for given member (field or method).protected JsonSerializer<?>
BeanSerializerFactory. _createSerializer2(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
protected JsonSerializer<java.lang.Object>
BeanPropertyWriter. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
BasicSerializerFactory. _findContentSerializer(SerializerProvider prov, Annotated a)
Helper method called to try to find whether there is an annotation in the class that indicates content ("value") serializer to use.protected com.fasterxml.jackson.annotation.JsonInclude.Value
BasicSerializerFactory. _findInclusionWithContent(SerializerProvider prov, BeanDescription beanDesc, JavaType contentType, java.lang.Class<?> configType)
Helper method used for finding inclusion definitions for structured container types likeMap
s and referential types (likeAtomicReference
).protected JsonSerializer<java.lang.Object>
BasicSerializerFactory. _findKeySerializer(SerializerProvider prov, Annotated a)
Helper method called to try to find whether there is an annotation in the class that indicates key serializer to use.protected JsonSerializer<?>
BeanSerializerFactory. _findUnsupportedTypeSerializer(SerializerProvider ctxt, JavaType type, BeanDescription beanDesc)
void
DefaultSerializerProvider. acceptJsonFormatVisitor(JavaType javaType, JsonFormatVisitorWrapper visitor)
The method to be called byObjectMapper
andObjectWriter
to to expose the format of the given to to the given visitorvoid
SerializerCache. addAndResolveNonTypedSerializer(JavaType type, JsonSerializer<java.lang.Object> ser, SerializerProvider provider)
void
SerializerCache. addAndResolveNonTypedSerializer(java.lang.Class<?> rawType, JavaType fullType, JsonSerializer<java.lang.Object> ser, SerializerProvider provider)
Another alternative that will cover both access via raw type and matching fully resolved type, in one fell swoop.void
SerializerCache. addAndResolveNonTypedSerializer(java.lang.Class<?> type, JsonSerializer<java.lang.Object> ser, SerializerProvider provider)
protected JsonSerializer<?>
BasicSerializerFactory. buildArraySerializer(SerializerProvider prov, ArrayType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forObject[]
(and subtypes, except for String).protected JsonSerializer<?>
BasicSerializerFactory. buildAtomicReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping, TypeSerializer contentTypeSerializer, JsonSerializer<java.lang.Object> contentSerializer)
protected JsonSerializer<?>
BasicSerializerFactory. buildCollectionSerializer(SerializerProvider prov, CollectionType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forList
types that support efficient by-index accessprotected JsonSerializer<?>
BasicSerializerFactory. buildContainerSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
protected JsonSerializer<?>
BasicSerializerFactory. buildEnumSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc)
protected JsonSerializer<?>
BasicSerializerFactory. buildIterableSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType valueType)
protected JsonSerializer<?>
BasicSerializerFactory. buildIteratorSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType valueType)
protected JsonSerializer<?>
BasicSerializerFactory. buildMapEntrySerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType keyType, JavaType valueType)
protected JsonSerializer<?>
BasicSerializerFactory. buildMapSerializer(SerializerProvider prov, MapType type, BeanDescription beanDesc, boolean staticTyping, JsonSerializer<java.lang.Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<java.lang.Object> elementValueSerializer)
Helper method that handles configuration details when constructing serializers forMap
types.protected BeanPropertyWriter
PropertyBuilder. buildWriter(SerializerProvider prov, BeanPropertyDefinition propDef, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping)
protected JsonSerializer<java.lang.Object>
BeanSerializerFactory. constructBeanOrAddOnSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
Method called to construct serializer for serializing specified bean type if (but only if, as of 2.10), at least one property is found.protected JsonSerializer<java.lang.Object>
BeanSerializerFactory. constructBeanSerializer(SerializerProvider prov, BeanDescription beanDesc)
Deprecated.protected ObjectIdWriter
BeanSerializerFactory. constructObjectIdHandler(SerializerProvider prov, BeanDescription beanDesc, java.util.List<BeanPropertyWriter> props)
JsonSerializer<?>
ContextualSerializer. createContextual(SerializerProvider prov, BeanProperty property)
Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property.JsonSerializer<java.lang.Object>
BasicSerializerFactory. createKeySerializer(SerializerProvider ctxt, JavaType keyType, JsonSerializer<java.lang.Object> defaultImpl)
abstract JsonSerializer<java.lang.Object>
SerializerFactory. createKeySerializer(SerializationConfig config, JavaType type, JsonSerializer<java.lang.Object> defaultImpl)
Deprecated.JsonSerializer<java.lang.Object>
SerializerFactory. createKeySerializer(SerializerProvider prov, JavaType type, JsonSerializer<java.lang.Object> defaultImpl)
Method called to create serializer to use for serializing JSON property names (which must be output asJsonToken.FIELD_NAME
) for Map that has specified declared key type, and is for specified property (or, if property is null, as root value)abstract JsonSerializer<java.lang.Object>
BasicSerializerFactory. createSerializer(SerializerProvider prov, JavaType type)
JsonSerializer<java.lang.Object>
BeanSerializerFactory. createSerializer(SerializerProvider prov, JavaType origType)
Main serializer constructor method.abstract JsonSerializer<java.lang.Object>
SerializerFactory. createSerializer(SerializerProvider prov, JavaType baseType)
Method called to create (or, for immutable serializers, reuse) a serializer for given type.abstract TypeSerializer
SerializerFactory. createTypeSerializer(SerializationConfig config, JavaType baseType)
Method called to create a type information serializer for given base type, if one is needed.void
BeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
Deprecated.Method called byBeanSerializer
to let the filter determine whether, and in what form the given property exist within the parent, or root, schema.void
BeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodvoid
BeanPropertyWriter. depositSchemaProperty(JsonObjectFormatVisitor v, SerializerProvider provider)
void
BeanPropertyWriter. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.void
PropertyFilter. depositSchemaProperty(PropertyWriter writer, JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
Method called byBeanSerializer
to let the filter determine whether, and in what form the given property exist within the parent, or root, schema.void
PropertyFilter. depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.3: new code should use the alternativedepositSchemaProperty
methodabstract void
PropertyWriter. depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
Traversal method used for things like JSON Schema generation, or POJO introspection.abstract void
PropertyWriter. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.Since 2.2JsonSerializer<java.lang.Object>
BeanSerializerFactory. findBeanOrAddOnSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
Method that will try to construct aBeanSerializer
for given class if at least one property is found, OR, if not, one of add-on types.protected java.util.List<BeanPropertyWriter>
BeanSerializerFactory. findBeanProperties(SerializerProvider prov, BeanDescription beanDesc, BeanSerializerBuilder builder)
Method used to collect all actual serializable properties.JsonSerializer<java.lang.Object>
BeanSerializerFactory. findBeanSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc)
Deprecated.protected Converter<java.lang.Object,java.lang.Object>
BasicSerializerFactory. findConverter(SerializerProvider prov, Annotated a)
protected JsonSerializer<?>
BasicSerializerFactory. findConvertingSerializer(SerializerProvider prov, Annotated a, JsonSerializer<?> ser)
Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverter
is to be used; and if so, to construct and return suitable serializer for it.protected JsonSerializer<?>
BasicSerializerFactory. findOptionalStdSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
Overridable method called after checking all other types.TypeSerializer
BeanSerializerFactory. findPropertyContentTypeSerializer(JavaType containerType, SerializationConfig config, AnnotatedMember accessor)
Method called to create a type information serializer for values of given container property if one is needed.TypeSerializer
BeanSerializerFactory. findPropertyTypeSerializer(JavaType baseType, SerializationConfig config, AnnotatedMember accessor)
Method called to create a type information serializer for values of given non-container property if one is needed.JsonSerializer<?>
BasicSerializerFactory. findReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping)
protected JavaType
PropertyBuilder. findSerializationType(Annotated a, boolean useStaticTyping, JavaType declaredType)
Method that will try to determine statically defined type of property being serialized, based on annotations (for overrides), and alternatively declared type (if static typing for serialization is enabled).protected JsonSerializer<?>
BasicSerializerFactory. findSerializerByAddonType(SerializationConfig config, JavaType javaType, BeanDescription beanDesc, boolean staticTyping)
Reflection-based serialized find method, which checks if given class implements one of recognized "add-on" interfaces.protected JsonSerializer<?>
BasicSerializerFactory. findSerializerByAnnotations(SerializerProvider prov, JavaType type, BeanDescription beanDesc)
Method called to see if one of primary per-class annotations (or related, like implementing ofJsonSerializable
) determines the serializer to use.protected JsonSerializer<?>
BasicSerializerFactory. findSerializerByPrimaryType(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping)
Method for checking if we can determine serializer to use based on set of known primary types, checking for set of known base types (exact matches having been compared against withfindSerializerByLookup
).protected JsonSerializer<java.lang.Object>
BasicSerializerFactory. findSerializerFromAnnotation(SerializerProvider prov, Annotated a)
Helper method called to check if a class or method has an annotation (@link com.fasterxml.jackson.databind.annotation.JsonSerialize#using) that tells the class to use for serialization.JsonSchema
DefaultSerializerProvider. generateJsonSchema(java.lang.Class<?> type)
Deprecated.Should not be used any moreboolean
DefaultSerializerProvider. includeFilterSuppressNulls(java.lang.Object filter)
void
AnyGetterWriter. resolve(SerializerProvider provider)
void
ResolvableSerializer. resolve(SerializerProvider provider)
Method called afterSerializerProvider
has registered the serializer, but before it has returned it to the caller.JsonSerializer<java.lang.Object>
DefaultSerializerProvider. serializerInstance(Annotated annotated, java.lang.Object serDef)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.ser.impl
Methods in com.fasterxml.jackson.databind.ser.impl that throw JsonMappingException Modifier and Type Method Description protected JsonSerializer<java.lang.Object>
MapEntrySerializer. _findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
MapEntrySerializer. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
UnwrappingBeanPropertyWriter. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected void
IndexedStringListSerializer. acceptContentVisitor(JsonArrayFormatVisitor visitor)
protected void
StringCollectionSerializer. acceptContentVisitor(JsonArrayFormatVisitor visitor)
void
StringArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
UnknownSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
JsonSerializer<?>
MapEntrySerializer. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
StringArraySerializer. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
TypeWrappedSerializer. createContextual(SerializerProvider provider, BeanProperty property)
void
SimpleBeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
Deprecated.void
SimpleBeanPropertyFilter. depositSchemaProperty(BeanPropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.void
SimpleBeanPropertyFilter. depositSchemaProperty(PropertyWriter writer, JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
void
SimpleBeanPropertyFilter. depositSchemaProperty(PropertyWriter writer, ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.void
UnwrappingBeanPropertyWriter. depositSchemaProperty(JsonObjectFormatVisitor visitor, SerializerProvider provider)
protected void
UnknownSerializer. failForEmpty(SerializerProvider prov, java.lang.Object value)
PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddKeySerializer(java.lang.Class<?> type, SerializerProvider provider, BeanProperty property)
Method called if initial lookup fails, when looking for a key serializer (possible attached indirectly to a property) Will both find serializer and construct new map instance if warranted, and return both.PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddPrimarySerializer(JavaType type, SerializerProvider provider, BeanProperty property)
PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddPrimarySerializer(java.lang.Class<?> type, SerializerProvider provider, BeanProperty property)
Method called if initial lookup fails, when looking for a primary serializer (one that is directly attached to a property).PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddRootValueSerializer(JavaType type, SerializerProvider provider)
PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddRootValueSerializer(java.lang.Class<?> type, SerializerProvider provider)
Method called if initial lookup fails, when looking for a root value serializer: one that is not directly attached to a property, but needs to haveTypeSerializer
wrapped around it.PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddSecondarySerializer(JavaType type, SerializerProvider provider, BeanProperty property)
PropertySerializerMap.SerializerAndMapResult
PropertySerializerMap. findAndAddSecondarySerializer(java.lang.Class<?> type, SerializerProvider provider, BeanProperty property)
Method called if initial lookup fails, when looking for a non-primary serializer (one that is not directly attached to a property).JsonNode
UnknownSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
-
Uses of JsonMappingException in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std that throw JsonMappingException Modifier and Type Method Description protected void
DateTimeSerializerBase. _acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint, boolean asNumber)
protected boolean
JsonValueSerializer. _acceptJsonFormatVisitorForEnum(JsonFormatVisitorWrapper visitor, JavaType typeHint, java.lang.Class<?> enumType)
Overridable helper method used for special case handling of schema information for Enums.protected JsonSerializer<java.lang.Object>
AsArraySerializerBase. _findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
AsArraySerializerBase. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
MapSerializer. _findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
MapSerializer. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
ObjectArraySerializer. _findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
ObjectArraySerializer. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
StdKeySerializers.Dynamic. _findAndAddDynamic(PropertySerializerMap map, java.lang.Class<?> type, SerializerProvider provider)
protected JsonSerializer<java.lang.Object>
JsonValueSerializer. _findDynamicSerializer(SerializerProvider ctxt, java.lang.Class<?> valueClass)
protected JsonSerializer<java.lang.Object>
StdDelegatingSerializer. _findSerializer(java.lang.Object value, SerializerProvider serializers)
Helper method used for locating serializer to use in dynamic use case, where actual type value gets converted to is not specified beyond basicObject
, and where serializer needs to be located dynamically based on actual value type.protected abstract void
StaticListSerializerBase. acceptContentVisitor(JsonArrayFormatVisitor visitor)
void
AsArraySerializerBase. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
BeanSerializerBase. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
BooleanSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ByteArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ByteBufferSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ClassSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
DateTimeSerializerBase. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
EnumSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
FileSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
JsonValueSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
MapSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
NullSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
NumberSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
NumberSerializers.Base. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ObjectArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
RawSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ReferenceTypeSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
SerializableSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
SqlTimeSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StaticListSerializerBase. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.BooleanArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.CharArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.DoubleArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.FloatArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.IntArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.LongArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdArraySerializers.ShortArraySerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdDelegatingSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdJdkSerializers.AtomicBooleanSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdJdkSerializers.AtomicIntegerSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdJdkSerializers.AtomicLongSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdKeySerializers.Dynamic. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdScalarSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
StdSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Default implementation specifies no format.void
StringSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
TokenBufferSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
ToStringSerializerBase. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
void
UUIDSerializer. acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint)
JsonSerializer<?>
ArraySerializerBase. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
AsArraySerializerBase. createContextual(SerializerProvider serializers, BeanProperty property)
This method is needed to resolve contextual annotations like per-property overrides, as well as do recursive call tocreateContextual
of content serializer, if known statically.JsonSerializer<?>
BeanSerializerBase. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
BooleanSerializer. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
DateTimeSerializerBase. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
EnumSerializer. createContextual(SerializerProvider serializers, BeanProperty property)
To support some level of per-property configuration, we will need to make things contextual.JsonSerializer<?>
InetAddressSerializer. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
JsonValueSerializer. createContextual(SerializerProvider ctxt, BeanProperty property)
We can try to find the actual serializer for value, if we can statically figure out what the result type must be.JsonSerializer<?>
MapSerializer. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
NumberSerializer. createContextual(SerializerProvider prov, BeanProperty property)
JsonSerializer<?>
NumberSerializers.Base. createContextual(SerializerProvider prov, BeanProperty property)
JsonSerializer<?>
ObjectArraySerializer. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
ReferenceTypeSerializer. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
StaticListSerializerBase. createContextual(SerializerProvider serializers, BeanProperty property)
JsonSerializer<?>
StdDelegatingSerializer. createContextual(SerializerProvider provider, BeanProperty property)
JsonSerializer<?>
UUIDSerializer. createContextual(SerializerProvider serializers, BeanProperty property)
void
MapProperty. depositSchemaProperty(JsonObjectFormatVisitor objectVisitor, SerializerProvider provider)
void
MapProperty. depositSchemaProperty(ObjectNode propertiesNode, SerializerProvider provider)
Deprecated.protected JsonSerializer<?>
StdSerializer. findAnnotatedContentSerializer(SerializerProvider serializers, BeanProperty property)
Convenience method for finding out possibly configured content value serializer.protected JsonSerializer<?>
StdSerializer. findContextualConvertingSerializer(SerializerProvider provider, BeanProperty property, JsonSerializer<?> existingSerializer)
Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)protected JsonSerializer<?>
StdSerializer. findConvertingContentSerializer(SerializerProvider provider, BeanProperty prop, JsonSerializer<?> existingSerializer)
protected JsonSerializer<java.lang.Object>
BeanSerializerBase. findConvertingSerializer(SerializerProvider provider, BeanPropertyWriter prop)
Helper method that can be used to see if specified property is annotated to indicate use of a converter for property value (in case of container types, it is container type itself, not key or content type).protected PropertyFilter
StdSerializer. findPropertyFilter(SerializerProvider provider, java.lang.Object filterId, java.lang.Object valueToFilter)
Helper method used to locate filter that is needed, based on filter id this serializer was constructed with.JsonNode
AsArraySerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
JsonNode
BeanSerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.JsonNode
JsonValueSerializer. getSchema(SerializerProvider ctxt, java.lang.reflect.Type typeHint)
JsonNode
NullSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
JsonNode
StdDelegatingSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
JsonNode
StdDelegatingSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
JsonNode
StdScalarSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
JsonNode
StdSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Default implementation simply claims type is "string"; usually overriden by custom serializers.JsonNode
StdSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Default implementation simply claims type is "string"; usually overriden by custom serializers.JsonNode
ToStringSerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
void
BeanSerializerBase. resolve(SerializerProvider provider)
We need to implementResolvableSerializer
to be able to properly handle cyclic type references.void
StdDelegatingSerializer. resolve(SerializerProvider provider)
protected void
StdSerializer. visitArrayFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonFormatTypes itemType)
protected void
StdSerializer. visitArrayFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonSerializer<?> itemSerializer, JavaType itemType)
protected void
StdSerializer. visitFloatFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, com.fasterxml.jackson.core.JsonParser.NumberType numberType)
Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is a floating-point JSON number.protected void
StdSerializer. visitIntFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, com.fasterxml.jackson.core.JsonParser.NumberType numberType)
Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON Integer number.protected void
StdSerializer. visitIntFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, com.fasterxml.jackson.core.JsonParser.NumberType numberType, JsonValueFormat format)
Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON Integer number, but that there is also a further format restriction involved.protected void
StdSerializer. visitStringFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint)
Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON String.protected void
StdSerializer. visitStringFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonValueFormat format)
Helper method that calls necessary visit method(s) to indicate that the underlying JSON type is JSON String, but that there is a more refined logical type -
Uses of JsonMappingException in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util that throw JsonMappingException Modifier and Type Method Description static <T> T
ClassUtil. throwAsMappingException(DeserializationContext ctxt, java.io.IOException e0)
-