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.util |
Utility classes used by Jackson Core functionality.
|
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.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
Modifier and Type | Method and Description |
---|---|
abstract <T extends TreeNode> |
ObjectCodec.readTree(JsonParser p)
Method for deserializing JSON content as tree expressed
using set of
TreeNode instances. |
abstract <T extends TreeNode> |
TreeCodec.readTree(JsonParser p) |
<T extends TreeNode> |
JsonParser.readValueAsTree()
Method to deserialize JSON content into equivalent "tree model",
represented by root
TreeNode of resulting model. |
Modifier and Type | Method and Description |
---|---|
TreeNode |
TreeNode.at(JsonPointer ptr)
Method for locating node specified by given JSON pointer instances.
|
TreeNode |
TreeNode.at(String jsonPointerExpression)
Convenience method that is functionally equivalent to:
|
abstract TreeNode |
ObjectCodec.createArrayNode()
Method for construct root level Array nodes
for Tree Model instances.
|
abstract TreeNode |
TreeCodec.createArrayNode() |
abstract TreeNode |
ObjectCodec.createObjectNode()
Method for construct root level Object nodes
for Tree Model instances.
|
abstract TreeNode |
TreeCodec.createObjectNode() |
TreeNode |
TreeNode.get(int index)
Method for accessing value of the specified element of
an array node.
|
TreeNode |
TreeNode.get(String fieldName)
Method for accessing value of the specified field of
an object node.
|
TreeNode |
TreeCodec.missingNode() |
TreeNode |
TreeCodec.nullNode() |
TreeNode |
TreeNode.path(int index)
Method for accessing value of the specified element of
an array node.
|
TreeNode |
TreeNode.path(String fieldName)
Method for accessing value of the specified field of
an object node.
|
Modifier and Type | Method and Description |
---|---|
abstract JsonParser |
ObjectCodec.treeAsTokens(TreeNode n)
Method for constructing a
JsonParser for reading
contents of a JSON tree, as if it was external serialized
JSON content. |
abstract JsonParser |
TreeCodec.treeAsTokens(TreeNode node) |
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 |
ObjectCodec.writeTree(JsonGenerator gen,
TreeNode tree)
Method for serializing JSON content from given Tree instance, using
specified generator.
|
abstract void |
TreeCodec.writeTree(JsonGenerator g,
TreeNode tree) |
abstract void |
JsonGenerator.writeTree(TreeNode rootNode)
Method for writing given JSON tree (expressed as a tree
where given JsonNode is the root) using this generator.
|
Modifier and Type | Method and Description |
---|---|
void |
GeneratorBase.writeTree(TreeNode rootNode) |
Modifier and Type | Method and Description |
---|---|
void |
JsonGeneratorDelegate.writeTree(TreeNode tree) |
Modifier and Type | Class and Description |
---|---|
class |
JsonNode
Base class for all JSON nodes, which form the basis of JSON
Tree Model that Jackson implements.
|
Modifier and Type | Method and Description |
---|---|
<T extends TreeNode> |
ObjectMapper.readTree(JsonParser p)
Method to deserialize JSON content as a tree
JsonNode . |
<T extends TreeNode> |
ObjectReader.readTree(JsonParser p)
Convenience method that binds content read using given parser, using
configuration of this reader, except that content is bound as
JSON tree instead of configured root value type.
|
Modifier and Type | Method and Description |
---|---|
JsonParser |
ObjectMapper.treeAsTokens(TreeNode n)
Method for constructing a
JsonParser out of JSON tree
representation. |
JsonParser |
ObjectReader.treeAsTokens(TreeNode n) |
<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,
TreeNode rootNode) |
void |
ObjectReader.writeTree(JsonGenerator g,
TreeNode rootNode) |
Modifier and Type | Class and Description |
---|---|
class |
ArrayNode
Node class that represents Arrays mapped from JSON content.
|
class |
BaseJsonNode
Abstract base class common to all standard
JsonNode
implementations. |
class |
BigIntegerNode
Numeric node that contains simple 64-bit integer values.
|
class |
BinaryNode
Value node that contains Base64 encoded binary value, which will be
output and stored as Json String value.
|
class |
BooleanNode
This concrete value class is used to contain boolean (true / false)
values.
|
class |
ContainerNode<T extends ContainerNode<T>>
This intermediate base class is used for all container nodes,
specifically, array and object nodes.
|
class |
DecimalNode
Numeric node that contains values that do not fit in simple
integer (int, long) or floating point (double) values.
|
class |
DoubleNode
Numeric node that contains 64-bit ("double precision")
floating point values simple 32-bit integer values.
|
class |
FloatNode
JsonNode implementation for efficiently containing 32-bit
`float` values. |
class |
IntNode
Numeric node that contains simple 32-bit integer values.
|
class |
LongNode
Numeric node that contains simple 64-bit integer values.
|
class |
MissingNode
This singleton node class is generated to denote "missing nodes"
along paths that do not exist.
|
class |
NullNode
This singleton value class is used to contain explicit JSON null
value.
|
class |
NumericNode
Intermediate value node used for numeric nodes.
|
class |
ObjectNode
Node that maps to JSON Object structures in JSON content.
|
class |
POJONode
Value node that contains a wrapped POJO, to be serialized as
a JSON constructed through data mapping (usually done by
calling
ObjectMapper ). |
class |
ShortNode
Numeric node that contains simple 16-bit integer values.
|
class |
TextNode
Value node that contains a text value.
|
class |
ValueNode
This intermediate base class is used for all leaf nodes, that is,
all non-container (array or object) nodes, except for the
"missing node".
|
Modifier and Type | Method and Description |
---|---|
void |
TokenBuffer.writeTree(TreeNode node) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.