public class JsonNodeDeserializer extends BaseNodeDeserializer<JsonNode>
JsonNode from any
JSON content, using appropriate JsonNode type.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
JsonNodeDeserializer.ArrayDeserializer |
(package private) static class |
JsonNodeDeserializer.ObjectDeserializer |
JsonDeserializer.None| Modifier and Type | Field and Description |
|---|---|
private static JsonNodeDeserializer |
instance
Singleton instance of generic deserializer for
JsonNode. |
_valueClass, F_MASK_INT_COERCIONS| Modifier | Constructor and Description |
|---|---|
protected |
JsonNodeDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
JsonNode |
deserialize(com.fasterxml.jackson.core.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).
|
static JsonDeserializer<? extends JsonNode> |
getDeserializer(java.lang.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). |
_fromEmbedded, _fromFloat, _fromInt, _handleDuplicateField, _reportProblem, deserializeAny, deserializeArray, deserializeObject, deserializeWithType, isCachable_coerceIntegral, _deserializeFromEmpty, _failDoubleToIntCoercion, _hasTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _parseBoolean, _parseBooleanFromOther, _parseBooleanPrimitive, _parseByte, _parseDate, _parseDouble, _parseDoublePrimitive, _parseFloat, _parseFloatPrimitive, _parseInteger, _parseIntPrimitive, _parseLong, _parseLongPrimitive, _parseShort, _parseShortPrimitive, _parseString, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, getValueClass, getValueType, handledType, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubledeserialize, findBackReference, getDelegatee, getEmptyValue, getEmptyValue, getKnownPropertyNames, getObjectIdReader, replaceDelegatee, unwrappingDeserializerprivate static final JsonNodeDeserializer instance
JsonNode.
Only used for types other than JSON Object and Array.public static JsonDeserializer<? extends JsonNode> getDeserializer(java.lang.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(com.fasterxml.jackson.core.JsonParser p, DeserializationContext ctxt) throws java.io.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.java.io.IOException