Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.exc |
Package for some of
JsonProcessingException
subtypes contained by streaming API. |
com.fasterxml.jackson.core.filter | |
com.fasterxml.jackson.core.io | |
com.fasterxml.jackson.core.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
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.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.type | |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
com.fasterxml.jackson.datatype.jsr310.ser.key | |
com.fasterxml.jackson.module.jaxb.deser | |
com.fasterxml.jackson.module.jaxb.ser |
Modifier and Type | Class and Description |
---|---|
class |
JsonGenerationException
Exception type for exceptions during JSON writing, such as trying
to output content in wrong context (non-matching end-array or end-object,
for example).
|
class |
JsonParseException
Exception type for parsing problems, used when non-well-formed content
(content that does not conform to JSON syntax as per specification)
is encountered.
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends TreeNode> |
TreeCodec.readTree(JsonParser p) |
abstract <T> T |
ObjectCodec.treeToValue(TreeNode n,
Class<T> valueType)
Convenience method for converting given JSON tree into instance of specified
value type.
|
abstract void |
TreeCodec.writeTree(JsonGenerator g,
TreeNode tree) |
Modifier and Type | Method and Description |
---|---|
protected char |
ParserBase._handleUnrecognizedCharacterEscape(char ch) |
Modifier and Type | Class and Description |
---|---|
class |
InputCoercionException
Exception type for read-side problems that are not direct decoding ("parsing")
problems (those would be reported as
JsonParseException s),
but rather result from failed attempts to convert specific Java value out of valid
but incompatible input value. |
class |
StreamReadException
Intermediate base class for all read-side streaming processing problems, including
parsing and input value coercion problems.
|
Modifier and Type | Method and Description |
---|---|
TokenFilter |
TokenFilterContext.setFieldName(String name) |
Modifier and Type | Class and Description |
---|---|
class |
JsonEOFException
Specialized
JsonParseException that is thrown when end-of-input
is reached unexpectedly, either within token being decoded, or during
skipping of intervening white-space that is not between root-level
tokens (that is, is within JSON Object or JSON Array construct). |
Modifier and Type | Method and Description |
---|---|
void |
JsonReadContext.setCurrentName(String name) |
int |
JsonWriteContext.writeFieldName(String name)
Method that writer is to call before it writes a field name.
|
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 JsonParseException ,
JsonGenerationException ). |
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectReader._reportUnkownFormat(DataFormatReaders detector,
DataFormatReaders.Match match)
Method called to indicate that format detection failed to detect format
of given input
|
abstract T |
JsonDeserializer.deserialize(JsonParser p,
DeserializationContext ctxt)
Method that can be called to ask implementation to deserialize
JSON content into the value type this serializer handles.
|
JsonNode |
ObjectMapper.readTree(File file)
Same as
ObjectMapper.readTree(InputStream) except content read from
passed-in File . |
<T extends TreeNode> |
ObjectMapper.readTree(JsonParser p)
Method to deserialize JSON content as a tree
JsonNode . |
JsonNode |
ObjectMapper.readTree(String content)
Same as
ObjectMapper.readTree(InputStream) except content read from
passed-in String |
JsonNode |
ObjectReader.readTree(String json)
Same as
ObjectReader.readTree(InputStream) except content read from
passed-in String |
<T> T |
ObjectReader.readValue(String src)
Method that binds content read from given JSON string,
using configuration of this reader.
|
<T> T |
ObjectMapper.readValue(String content,
Class<T> valueType)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(String content,
JavaType valueType)
Method to deserialize JSON content from given JSON content String.
|
<T> T |
ObjectMapper.readValue(String content,
TypeReference<T> valueTypeRef)
Method to deserialize JSON content from given JSON content String.
|
<T> MappingIterator<T> |
ObjectMapper.readValues(JsonParser p,
Class<T> valueType)
Convenience method, equivalent in function to:
|
<T> MappingIterator<T> |
ObjectMapper.readValues(JsonParser p,
JavaType valueType)
Convenience method, equivalent in function to:
|
<T> MappingIterator<T> |
ObjectMapper.readValues(JsonParser p,
ResolvedType valueType)
Convenience method, equivalent in function to:
|
<T> MappingIterator<T> |
ObjectMapper.readValues(JsonParser p,
TypeReference<T> valueTypeRef)
Method for reading sequence of Objects from parser stream.
|
<T> T |
ObjectMapper.treeToValue(TreeNode n,
Class<T> valueType)
Convenience conversion method that will bind data given JSON tree
contains into specific value (usually bean) type.
|
<T> T |
ObjectReader.treeToValue(TreeNode n,
Class<T> valueType) |
void |
ObjectMapper.writeTree(JsonGenerator g,
JsonNode rootNode)
Method to serialize given JSON Tree, using generator
provided.
|
void |
ObjectMapper.writeTree(JsonGenerator g,
TreeNode rootNode) |
byte[] |
ObjectMapper.writeValueAsBytes(Object value)
Method that can be used to serialize any Java value as
a byte array.
|
byte[] |
ObjectWriter.writeValueAsBytes(Object value)
Method that can be used to serialize any Java value as
a byte array.
|
String |
ObjectMapper.writeValueAsString(Object value)
Method that can be used to serialize any Java value as
a String.
|
String |
ObjectWriter.writeValueAsString(Object value)
Method that can be used to serialize any Java value as
a String.
|
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 | Method and Description |
---|---|
abstract void |
PropertyValue.assign(Object bean)
Method called to assign stored value of this property to specified
bean instance
|
Modifier and Type | Method and Description |
---|---|
Object |
EnumSetDeserializer.deserializeWithType(JsonParser p,
DeserializationContext ctxt,
TypeDeserializer typeDeserializer) |
Object |
StdNodeBasedDeserializer.deserializeWithType(JsonParser jp,
DeserializationContext ctxt,
TypeDeserializer td) |
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. |
Modifier and Type | Method and Description |
---|---|
abstract void |
BaseJsonNode.serialize(JsonGenerator jgen,
SerializerProvider provider)
Method called to serialize node instances using given generator.
|
void |
BigIntegerNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
BinaryNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
DecimalNode.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
IntNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
LongNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
void |
MissingNode.serialize(JsonGenerator g,
SerializerProvider provider) |
void |
ShortNode.serialize(JsonGenerator jg,
SerializerProvider provider) |
abstract void |
BaseJsonNode.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer)
Type information is needed, even if JsonNode instances are "plain" JSON,
since they may be mixed with other types.
|
void |
MissingNode.serializeWithType(JsonGenerator g,
SerializerProvider provider,
TypeSerializer typeSer) |
Modifier and Type | Method and Description |
---|---|
void |
TypeBase.serialize(JsonGenerator gen,
SerializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
JSONWrappedObject.serialize(JsonGenerator jgen,
SerializerProvider provider) |
void |
JSONWrappedObject.serializeWithType(JsonGenerator jgen,
SerializerProvider provider,
TypeSerializer typeSer) |
void |
TokenBufferReadContext.setCurrentName(String name) |
Modifier and Type | Method and Description |
---|---|
void |
ZonedDateTimeKeySerializer.serialize(ZonedDateTime value,
JsonGenerator gen,
SerializerProvider serializers) |
Modifier and Type | Method and Description |
---|---|
DataHandler |
DataHandlerJsonDeserializer.deserialize(JsonParser jp,
DeserializationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
void |
DataHandlerJsonSerializer.serialize(DataHandler value,
JsonGenerator jgen,
SerializerProvider provider) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.