java.lang.Object
(either explicitly, or due to type erasure).
If so, "natural" mapping is used to convert JSON values to their natural
Java object matches: JSON arrays to Java java.util.List s (or, if configured,
Object[]), JSON objects to java.util.Map s, numbers to
java.lang.Number s, booleans to java.lang.Boolean s and
strings to java.lang.String (and nulls to nulls).
| Modifier and Type | Class and Description |
|---|---|
| public static class | UntypedObjectDeserializer.
Deprecated
Streamlined version of UntypedObjectDeserializer that has fewer checks and
is only used when no custom deserializer overrides are applied.
|
| Modifier and Type | Field and Description |
|---|---|
| protected JsonDeserializer | |
| protected JavaType | _listType
If |
| protected JsonDeserializer | |
| protected JavaType | _mapType
If |
| protected final boolean | |
| protected JsonDeserializer | |
| protected JsonDeserializer | |
| protected static final Object[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | UntypedObjectDeserializer(UntypedObjectDeserializer base, JsonDeserializer<?> mapDeser, JsonDeserializer<?> listDeser, JsonDeserializer<?> stringDeser, JsonDeserializer<?> numberDeser)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonDeserializer | |
| protected Object | |
| protected JsonDeserializer | |
| protected Object | _mapObjectWithDups(JsonParser p, DeserializationContext ctxt, final Map<String, Object> result, String key, Object oldValue, Object newValue, String nextKey)
|
| private void | |
| public JsonDeserializer | createContextual(DeserializationContext
Deserialization context to access configuration, additional
deserializers that may be needed by this deserializer ctxt, BeanProperty Method, field or constructor parameter that represents the property
(and is used to assign deserialized value).
Should be available; but there may be cases where caller cannot provide it and
null is passed instead (in which case impls usually pass 'this' deserializer as is) property)Implements com. We only use contextualization for optimizing the case where no customization occurred; if so, can slip in a more streamlined version. |
| public Object | deserialize(JsonParser
Parser used for reading JSON content p, DeserializationContext Context that can be used to access information about
this deserialization activity. ctxt)Implements abstract com. Method that can be called to ask implementation to deserialize JSON content into the value type this serializer handles. |
| public Object | deserialize(JsonParser p, DeserializationContext ctxt, Object intoValue)
Overrides com. Alternate deserialization method (compared to the most commonly
used, |
| public Object | deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer
Deserializer to use for handling type information typeDeserializer)Overrides com. Base implementation that does not assume specific type inclusion mechanism. |
| public boolean | isCachable()
Overrides com. Method called to see if deserializer instance is cachable and usable for other properties of same type (type for which instance was created). |
| public LogicalType | logicalType()
Overrides com. Method for accessing logical type of values this deserializer produces. |
| protected Object | mapArray(JsonParser p, DeserializationContext ctxt)
Method called to map a JSON Array into a Java value. |
| protected Object | |
| protected Object[] | mapArrayToArray(JsonParser p, DeserializationContext ctxt)
Method called to map a JSON Array into a Java Object array (Object[]). |
| protected Object | mapObject(JsonParser p, DeserializationContext ctxt)
Method called to map a JSON Object into a Java value. |
| protected Object | |
| public void | resolve(DeserializationContext
Context to use for accessing configuration, resolving
secondary deserializers ctxt)Implements com. 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) |
| public Boolean | supportsUpdate(DeserializationConfig config)
Overrides com. Introspection method that may be called to see whether deserializer supports update of an existing value (aka "merging") or not. |