public class JsonNodeDeserializer extends StdDeserializer<T>
JsonNode from any
 JSON content, using appropriate JsonNode type.JsonDeserializer.None_valueClass, F_MASK_INT_COERCIONS| Modifier | Constructor and Description | 
|---|---|
| protected  | JsonNodeDeserializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected JsonNode | _fromEmbedded(JsonParser p,
             DeserializationContext ctxt,
             JsonNodeFactory nodeFactory) | 
| protected JsonNode | _fromFloat(JsonParser p,
          DeserializationContext ctxt,
          JsonNodeFactory nodeFactory) | 
| protected JsonNode | _fromInt(JsonParser p,
        DeserializationContext ctxt,
        JsonNodeFactory nodeFactory) | 
| protected void | _handleDuplicateField(JsonParser p,
                     DeserializationContext ctxt,
                     JsonNodeFactory nodeFactory,
                     String fieldName,
                     ObjectNode objectNode,
                     JsonNode oldValue,
                     JsonNode newValue)Method called when there is a duplicate value for a field. | 
| protected void | _reportProblem(JsonParser p,
              String msg)Deprecated.  | 
| JsonNode | deserialize(JsonParser p,
           DeserializationContext ctxt)Implementation that will produce types of any JSON nodes; not just one
 deserializer is registered to handle (in case of more specialized handler). | 
| protected JsonNode | deserializeAny(JsonParser p,
              DeserializationContext ctxt,
              JsonNodeFactory nodeFactory) | 
| protected ArrayNode | deserializeArray(JsonParser p,
                DeserializationContext ctxt,
                JsonNodeFactory nodeFactory) | 
| protected ObjectNode | deserializeObject(JsonParser p,
                 DeserializationContext ctxt,
                 JsonNodeFactory nodeFactory) | 
| Object | deserializeWithType(JsonParser p,
                   DeserializationContext ctxt,
                   TypeDeserializer typeDeserializer)Base implementation that does not assume specific type
 inclusion mechanism. | 
| static JsonDeserializer<? extends JsonNode> | getDeserializer(Class<?> nodeClass)Factory method for accessing deserializer for specific node type | 
| JsonNode | getNullValue()Deprecated.  | 
| JsonNode | getNullValue(DeserializationContext ctxt)Method that can be called to determine value to be used for
 representing null values (values deserialized when JSON token
 is  JsonToken.VALUE_NULL). | 
| boolean | isCachable()Method called to see if deserializer instance is cachable and
 usable for other properties of same type (type for which instance
 was created). | 
_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubledeserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getObjectIdReader, replaceDelegatee, unwrappingDeserializerpublic static JsonDeserializer<? extends JsonNode> getDeserializer(Class<?> nodeClass)
public JsonNode getNullValue(DeserializationContext ctxt)
JsonDeserializerJsonToken.VALUE_NULL). Usually this is simply
 Java null, but for some types (especially primitives) it may be
 necessary to use non-null values.
Since version 2.6 (in which the context argument was added), call is expected to be made each and every time a null token needs to be handled.
Default implementation simply returns null.
getNullValue in class JsonDeserializer<JsonNode>@Deprecated public JsonNode getNullValue()
getNullValue in class JsonDeserializer<JsonNode>public JsonNode deserialize(JsonParser p, DeserializationContext ctxt) throws IOException
deserialize in class JsonDeserializer<JsonNode>p - Parsed used for reading JSON contentctxt - Context that can be used to access information about
   this deserialization activity.IOExceptionpublic Object deserializeWithType(JsonParser p, DeserializationContext ctxt, TypeDeserializer typeDeserializer) throws IOException
StdDeserializerdeserializeWithType in class StdDeserializer<T extends JsonNode>typeDeserializer - Deserializer to use for handling type informationIOExceptionpublic boolean isCachable()
JsonDeserializer
 Note that cached instances are still resolved on per-property basis,
 if instance implements ResolvableDeserializer:
 cached instance is just as the base. This means that in most cases it is safe to
 cache instances; however, it only makes sense to cache instances
 if instantiation is expensive, or if instances are heavy-weight.
Default implementation returns false, to indicate that no caching is done.
isCachable in class JsonDeserializer<T extends JsonNode>@Deprecated protected void _reportProblem(JsonParser p, String msg) throws JsonMappingException
JsonMappingExceptionprotected void _handleDuplicateField(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory, String fieldName, ObjectNode objectNode, JsonNode oldValue, JsonNode newValue) throws JsonProcessingException
fieldName - Name of the field for which duplicate value was foundobjectNode - Object node that contains valuesoldValue - Value that existed for the object node before newValue
   was addednewValue - Newly added value just added to the object nodeJsonProcessingExceptionprotected final ObjectNode deserializeObject(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionprotected final ArrayNode deserializeArray(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionprotected final JsonNode deserializeAny(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionprotected final JsonNode _fromInt(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionprotected final JsonNode _fromFloat(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionprotected final JsonNode _fromEmbedded(JsonParser p, DeserializationContext ctxt, JsonNodeFactory nodeFactory) throws IOException
IOExceptionCopyright © 2008–2016 FasterXML. All rights reserved.