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.exc |
Modifier and Type | Class and Description |
---|---|
class |
JsonMappingException
Checked exception used to signal fatal problems with mapping of
content, distinct from low-level I/O problems (signaled using
simple
IOException s) or data encoding/decoding
problems (signaled with StreamReadException ,
StreamWriteException ). |
Modifier and Type | Method and Description |
---|---|
protected JsonDeserializer<Object> |
ObjectReader._findRootDeserializer(DeserializationContext ctxt)
Method called to locate deserializer for the passed root-level value.
|
protected JsonDeserializer<Object> |
ObjectMapper._findRootDeserializer(DeserializationContext ctxt,
JavaType valueType)
Method called to locate deserializer for the passed root-level value.
|
protected JsonDeserializer<Object> |
ObjectReader._findTreeDeserializer(DeserializationContext ctxt) |
<T> T |
ObjectMapper.readValue(byte[] src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(byte[] src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(File src,
Class<T> valueType)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(File src,
JavaType valueType)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(File src,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given file into given Java type.
|
<T> T |
ObjectMapper.readValue(InputStream src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(JsonParser p,
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 (like
Boolean ). |
<T> T |
ObjectMapper.readValue(JsonParser p,
JavaType valueType)
Type-safe overloaded method, basically alias for
ObjectMapper.readValue(JsonParser, Class) . |
<T> T |
ObjectMapper.readValue(JsonParser p,
ResolvedType valueType)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser p,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(Reader src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
TypeReference<T> valueTypeRef) |
<T> T |
ObjectMapper.readValue(URL src,
Class<T> valueType)
Method to deserialize JSON content from given resource into given Java type.
|
<T> T |
ObjectMapper.readValue(URL src,
JavaType valueType)
Same as
ObjectMapper.readValue(java.net.URL, Class) except that target specified by JavaType . |
<T> T |
ObjectMapper.readValue(URL src,
TypeReference<T> valueTypeRef)
Same as
ObjectMapper.readValue(java.net.URL, Class) except that target specified by TypeReference . |
void |
ObjectWriter.writeValue(DataOutput out,
Object value) |
void |
ObjectWriter.writeValue(File resultFile,
Object value)
Method that can be used to serialize any Java value as
JSON output, written to File provided.
|
void |
ObjectMapper.writeValue(File resultFile,
Object value)
Method that can be used to serialize any Java value as
JSON output, written to File provided.
|
void |
ObjectMapper.writeValue(JsonGenerator g,
Object value)
Method that can be used to serialize any Java value as
JSON output, using provided
JsonGenerator . |
void |
ObjectWriter.writeValue(OutputStream out,
Object value)
Method that can be used to serialize any Java value as
JSON output, using output stream provided (using encoding
JsonEncoding.UTF8 ). |
void |
ObjectMapper.writeValue(OutputStream out,
Object value)
Method that can be used to serialize any Java value as
JSON output, using output stream provided (using encoding
JsonEncoding.UTF8 ). |
void |
ObjectWriter.writeValue(Writer w,
Object value)
Method that can be used to serialize any Java value as
JSON output, using Writer provided.
|
void |
ObjectMapper.writeValue(Writer w,
Object value)
Method that can be used to serialize any Java value as
JSON output, using Writer provided.
|
Modifier and Type | Class and Description |
---|---|
class |
UnresolvedForwardReference
Exception thrown during deserialization when there are object id that can't
be resolved.
|
Modifier and Type | Class and Description |
---|---|
class |
IgnoredPropertyException
Specialized
JsonMappingException 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 all
JsonMappingException 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 of
MismatchedInputException
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 (see
JsonSetter ). |
class |
InvalidTypeIdException
Exception thrown when resolution of a type id fails.
|
class |
MismatchedInputException
General exception type used as the base class for all
JsonMappingException 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 for
JsonMappingException s that are specifically related
to problems related to binding an individual property. |
class |
UnrecognizedPropertyException
Specialized
JsonMappingException 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 by
ValueInstantiator :
commonly used to wrap exceptions thrown by constructor or factory
method. |
Copyright © 2008–2021 FasterXML. All rights reserved.