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.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
com.fasterxml.jackson.databind.ext |
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
|
com.fasterxml.jackson.databind.jsonschema |
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
|
com.fasterxml.jackson.databind.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(com.fasterxml.jackson.databind.Module) . |
com.fasterxml.jackson.databind.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.ser |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.std | |
com.fasterxml.jackson.module.jaxb.deser | |
com.fasterxml.jackson.module.jaxb.ser |
Modifier and Type | Method and Description |
---|---|
abstract <T extends JsonNode> |
JsonNode.deepCopy()
Method that can be called to get a node that is guaranteed
not to allow changing of this node through mutators on
this node or any of its children.
|
<T extends JsonNode> |
ObjectMapper.valueToTree(Object fromValue)
Reverse of
ObjectMapper.treeToValue(com.fasterxml.jackson.core.TreeNode, java.lang.Class<T>) ; given a value (usually bean), will
construct equivalent JSON Tree representation. |
Modifier and Type | Method and Description |
---|---|
protected abstract JsonNode |
JsonNode._at(JsonPointer ptr) |
protected JsonNode |
ObjectReader._bindAndCloseAsTree(JsonParser p0) |
protected JsonNode |
ObjectReader._bindAsTree(JsonParser p) |
protected JsonNode |
ObjectReader._detectBindAndCloseAsTree(InputStream in) |
protected JsonNode |
ObjectMapper._readTreeAndClose(JsonParser p0)
Similar to
ObjectMapper._readMapAndClose(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType) but specialized for JsonNode
reading. |
JsonNode |
JsonNode.at(JsonPointer ptr)
Method for locating node specified by given JSON pointer instances.
|
JsonNode |
JsonNode.at(String jsonPtrExpr)
Convenience method that is functionally equivalent to:
|
JsonNode |
ObjectReader.createArrayNode() |
JsonNode |
ObjectReader.createObjectNode() |
abstract JsonNode |
JsonNode.findParent(String fieldName)
Method for finding a JSON Object that contains specified field,
within this node or its descendants.
|
abstract JsonNode |
JsonNode.findPath(String fieldName)
Method similar to
findValue(java.lang.String) , but that will return a
"missing node" instead of null if no field is found. |
abstract JsonNode |
JsonNode.findValue(String fieldName)
Method for finding a JSON Object field with specified name in this
node or its child nodes, and returning value it has.
|
abstract JsonNode |
JsonNode.get(int index)
Method for accessing value of the specified element of
an array node.
|
JsonNode |
JsonNode.get(String fieldName)
Method for accessing value of the specified field of
an object node.
|
abstract JsonNode |
JsonNode.path(int index)
This method is similar to
get(int) , except
that instead of returning null if no such element exists (due
to index being out of range, or this node not being an array),
a "missing node" (node that returns true for
isMissingNode() ) will be returned. |
abstract JsonNode |
JsonNode.path(String fieldName)
This method is similar to
get(String) , except
that instead of returning null if no such value exists (due
to this node not being an object, or object not having value
for the specified field),
a "missing node" (node that returns true for
isMissingNode() ) will be returned. |
JsonNode |
ObjectMapper.readTree(byte[] content)
Method to deserialize JSON content as tree expressed using set of
JsonNode instances. |
JsonNode |
ObjectReader.readTree(DataInput src) |
JsonNode |
ObjectMapper.readTree(File file)
Method to deserialize JSON content as tree expressed using set of
JsonNode instances. |
JsonNode |
ObjectReader.readTree(InputStream in)
Method that reads content from given input source,
using configuration of this reader, and binds it as JSON Tree.
|
JsonNode |
ObjectMapper.readTree(InputStream in)
Method to deserialize JSON content as tree expressed
using set of
JsonNode instances. |
JsonNode |
ObjectReader.readTree(Reader r)
Method that reads content from given input source,
using configuration of this reader, and binds it as JSON Tree.
|
JsonNode |
ObjectMapper.readTree(Reader r)
Method to deserialize JSON content as tree expressed
using set of
JsonNode instances. |
JsonNode |
ObjectReader.readTree(String json)
Method that reads content from given JSON input String,
using configuration of this reader, and binds it as JSON Tree.
|
JsonNode |
ObjectMapper.readTree(String content)
Method to deserialize JSON content as tree expressed using set of
JsonNode instances. |
JsonNode |
ObjectMapper.readTree(URL source)
Method to deserialize JSON content as tree expressed using set of
JsonNode instances. |
JsonNode |
JsonNode.with(String propertyName)
Method that can be called on Object nodes, to access a property
that has Object value; or if no such property exists, to create,
add and return such Object node.
|
JsonNode |
JsonNode.withArray(String propertyName)
Method that can be called on Object nodes, to access a property
that has
Array value; or if no such property exists, to create,
add and return such Array node. |
Modifier and Type | Method and Description |
---|---|
Iterator<JsonNode> |
JsonNode.elements()
Method for accessing all value nodes of this Node, iff
this node is a JSON Array or Object node.
|
Iterator<Map.Entry<String,JsonNode>> |
JsonNode.fields() |
List<JsonNode> |
JsonNode.findParents(String fieldName)
Method for finding a JSON Object that contains specified field,
within this node or its descendants.
|
abstract List<JsonNode> |
JsonNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
JsonNode.findValues(String fieldName)
Method for finding JSON Object fields with specified name, and returning
found ones as a List.
|
abstract List<JsonNode> |
JsonNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
Iterator<JsonNode> |
JsonNode.iterator()
Same as calling
elements() ; implemented so that
convenience "for-each" loop can be used for looping over elements
of JSON Array constructs. |
Modifier and Type | Method and Description |
---|---|
boolean |
JsonNode.equals(Comparator<JsonNode> comparator,
JsonNode other)
Entry method for invoking customizable comparison, using passed-in
Comparator object. |
<T> T |
ObjectReader.readValue(JsonNode src)
Convenience method for converting results from given JSON tree into given
value type.
|
void |
ObjectMapper.writeTree(JsonGenerator jgen,
JsonNode rootNode)
Method to serialize given JSON Tree, using generator
provided.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JsonNode.equals(Comparator<JsonNode> comparator,
JsonNode other)
Entry method for invoking customizable comparison, using passed-in
Comparator object. |
abstract List<JsonNode> |
JsonNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
abstract List<JsonNode> |
JsonNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
Modifier and Type | Method and Description |
---|---|
protected JsonDeserializer<?> |
BasicDeserializerFactory._findCustomTreeNodeDeserializer(Class<? extends JsonNode> type,
DeserializationConfig config,
BeanDescription beanDesc) |
JsonDeserializer<?> |
Deserializers.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanDescription beanDesc)
Method called to locate deserializer for specified JSON tree node type.
|
JsonDeserializer<?> |
Deserializers.Base.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanDescription beanDesc) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
JsonNodeDeserializer.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).
|
JsonNode |
JsonNodeDeserializer.getNullValue(DeserializationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
static JsonDeserializer<? extends JsonNode> |
JsonNodeDeserializer.getDeserializer(Class<?> nodeClass)
Factory method for accessing deserializer for specific node type
|
Modifier and Type | Method and Description |
---|---|
abstract T |
StdNodeBasedDeserializer.convert(JsonNode root,
DeserializationContext ctxt) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
DOMSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
Modifier and Type | Method and Description |
---|---|
static JsonNode |
JsonSchema.getDefaultSchemaNode()
Deprecated.
Get the default schema node.
|
JsonNode |
SchemaAware.getSchema(SerializerProvider provider,
Type typeHint)
Get the representation of the schema to which this serializer will conform.
|
JsonNode |
SchemaAware.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional)
Get the representation of the schema to which this serializer will conform.
|
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<?> |
SimpleDeserializers.findTreeNodeDeserializer(Class<? extends JsonNode> nodeType,
DeserializationConfig config,
BeanDescription beanDesc) |
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 | Field and Description |
---|---|
protected Map<String,JsonNode> |
ObjectNode._children |
Modifier and Type | Method and Description |
---|---|
<T extends JsonNode> |
ValueNode.deepCopy()
All current value nodes are immutable, so we can just return
them as is.
|
<T extends JsonNode> |
MissingNode.deepCopy() |
Modifier and Type | Method and Description |
---|---|
protected JsonNode |
ValueNode._at(JsonPointer ptr) |
protected JsonNode |
ObjectNode._at(JsonPointer ptr) |
protected JsonNode |
ArrayNode._at(JsonPointer ptr) |
protected JsonNode |
TreeTraversingParser.currentNode() |
protected JsonNode |
TreeTraversingParser.currentNumericNode() |
JsonNode |
BaseJsonNode.findPath(String fieldName) |
JsonNode |
ValueNode.findValue(String fieldName) |
JsonNode |
ObjectNode.findValue(String fieldName) |
JsonNode |
ArrayNode.findValue(String fieldName) |
JsonNode |
ValueNode.get(int index) |
JsonNode |
ObjectNode.get(int index) |
abstract JsonNode |
ContainerNode.get(int index) |
JsonNode |
ArrayNode.get(int index) |
JsonNode |
ValueNode.get(String fieldName) |
JsonNode |
ObjectNode.get(String fieldName) |
abstract JsonNode |
ContainerNode.get(String fieldName) |
JsonNode |
ArrayNode.get(String fieldName) |
JsonNode |
ValueNode.path(int index) |
JsonNode |
ObjectNode.path(int index) |
JsonNode |
ArrayNode.path(int index) |
JsonNode |
ValueNode.path(String fieldName) |
JsonNode |
ObjectNode.path(String fieldName) |
JsonNode |
ArrayNode.path(String fieldName) |
JsonNode |
ObjectNode.put(String fieldName,
JsonNode value)
Deprecated.
Since 2.4 use either
ObjectNode.set(String,JsonNode) or ObjectNode.replace(String,JsonNode) , |
JsonNode |
ObjectNode.putAll(Map<String,? extends JsonNode> properties)
Deprecated.
Since 2.4 use
ObjectNode.setAll(Map) , |
JsonNode |
ObjectNode.putAll(ObjectNode other)
Deprecated.
Since 2.4 use
ObjectNode.setAll(ObjectNode) , |
JsonNode |
ArrayNode.remove(int index)
Method for removing an entry from this ArrayNode.
|
JsonNode |
ObjectNode.remove(String fieldName)
Method for removing field entry from this ObjectNode.
|
JsonNode |
ObjectNode.replace(String fieldName,
JsonNode value)
Method for replacing value of specific property with passed
value, and returning value (or null if none).
|
JsonNode |
ArrayNode.set(int index,
JsonNode value)
Method that will set specified field, replacing old value,
if any.
|
JsonNode |
ObjectNode.set(String fieldName,
JsonNode value)
Method that will set specified field, replacing old value, if any.
|
JsonNode |
ObjectNode.setAll(Map<String,? extends JsonNode> properties)
Method for adding given properties to this object node, overriding
any existing values for those properties.
|
JsonNode |
ObjectNode.setAll(ObjectNode other)
Method for adding all properties of the given Object, overriding
any existing values for those properties.
|
JsonNode |
ObjectNode.without(String fieldName)
Method for removing field entry from this ObjectNode, and
returning instance after removal.
|
Modifier and Type | Method and Description |
---|---|
Iterator<JsonNode> |
ObjectNode.elements() |
Iterator<JsonNode> |
ArrayNode.elements() |
Iterator<Map.Entry<String,JsonNode>> |
ObjectNode.fields()
Method to use for accessing all fields (with both names
and values) of this JSON Object.
|
List<JsonNode> |
ValueNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ObjectNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ArrayNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ValueNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ObjectNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ArrayNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
Modifier and Type | Method and Description |
---|---|
protected ArrayNode |
ArrayNode._add(JsonNode node) |
protected ArrayNode |
ArrayNode._insert(int index,
JsonNode node) |
protected ObjectNode |
ObjectNode._put(String fieldName,
JsonNode value) |
ArrayNode |
ArrayNode.add(JsonNode value)
Method for adding specified node at the end of this array.
|
boolean |
ObjectNode.equals(Comparator<JsonNode> comparator,
JsonNode o) |
boolean |
ArrayNode.equals(Comparator<JsonNode> comparator,
JsonNode o) |
ArrayNode |
ArrayNode.insert(int index,
JsonNode value)
Method for inserting specified child node as an element
of this Array.
|
JsonNode |
ObjectNode.put(String fieldName,
JsonNode value)
Deprecated.
Since 2.4 use either
ObjectNode.set(String,JsonNode) or ObjectNode.replace(String,JsonNode) , |
JsonNode |
ObjectNode.replace(String fieldName,
JsonNode value)
Method for replacing value of specific property with passed
value, and returning value (or null if none).
|
JsonNode |
ArrayNode.set(int index,
JsonNode value)
Method that will set specified field, replacing old value,
if any.
|
JsonNode |
ObjectNode.set(String fieldName,
JsonNode value)
Method that will set specified field, replacing old value, if any.
|
Modifier and Type | Method and Description |
---|---|
ArrayNode |
ArrayNode.addAll(Collection<? extends JsonNode> nodes)
Method for adding given nodes as child nodes of this array node.
|
boolean |
ObjectNode.equals(Comparator<JsonNode> comparator,
JsonNode o) |
boolean |
ArrayNode.equals(Comparator<JsonNode> comparator,
JsonNode o) |
List<JsonNode> |
ValueNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ObjectNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ArrayNode.findParents(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ValueNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ObjectNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
List<JsonNode> |
ArrayNode.findValues(String fieldName,
List<JsonNode> foundSoFar) |
JsonNode |
ObjectNode.putAll(Map<String,? extends JsonNode> properties)
Deprecated.
Since 2.4 use
ObjectNode.setAll(Map) , |
JsonNode |
ObjectNode.setAll(Map<String,? extends JsonNode> properties)
Method for adding given properties to this object node, overriding
any existing values for those properties.
|
Constructor and Description |
---|
TreeTraversingParser(JsonNode n) |
TreeTraversingParser(JsonNode n,
ObjectCodec codec) |
Constructor and Description |
---|
ArrayNode(JsonNodeFactory nf,
List<JsonNode> children) |
ObjectNode(JsonNodeFactory nc,
Map<String,JsonNode> kids) |
Modifier and Type | Method and Description |
---|---|
protected void |
BeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode,
JsonNode schemaNode) |
Modifier and Type | Method and Description |
---|---|
protected JsonNode |
StringCollectionSerializer.contentSchema() |
protected JsonNode |
IndexedStringListSerializer.contentSchema() |
JsonNode |
UnknownSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StringArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
FailingSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
Modifier and Type | Method and Description |
---|---|
protected void |
UnwrappingBeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode,
JsonNode schemaNode) |
Modifier and Type | Method and Description |
---|---|
protected abstract JsonNode |
StaticListSerializerBase.contentSchema() |
JsonNode |
TokenBufferSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
ToStringSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StringSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdSerializer.getSchema(SerializerProvider provider,
Type typeHint)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
JsonNode |
StdScalarSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdJdkSerializers.AtomicBooleanSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdJdkSerializers.AtomicIntegerSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdJdkSerializers.AtomicLongSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdDelegatingSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.BooleanArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.ShortArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.CharArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.IntArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.LongArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.FloatArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdArraySerializers.DoubleArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StaticListSerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
SqlTimeSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
RawSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
NumberSerializers.Base.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
NumberSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
NullSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
MapSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
JsonValueSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
FileSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
EnumSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
DateTimeSerializerBase.getSchema(SerializerProvider serializers,
Type typeHint) |
JsonNode |
ClassSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
ByteArraySerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
BooleanSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
BeanSerializerBase.getSchema(SerializerProvider provider,
Type typeHint)
Deprecated.
|
JsonNode |
AsArraySerializerBase.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
StdSerializer.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional)
Default implementation simply claims type is "string"; usually
overriden by custom serializers.
|
JsonNode |
StdDelegatingSerializer.getSchema(SerializerProvider provider,
Type typeHint,
boolean isOptional) |
Modifier and Type | Method and Description |
---|---|
protected Element |
DomElementJsonDeserializer.fromNode(JsonParser p,
Document document,
JsonNode jsonNode) |
Modifier and Type | Method and Description |
---|---|
JsonNode |
DomElementJsonSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
JsonNode |
DataHandlerJsonSerializer.getSchema(SerializerProvider provider,
Type typeHint) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.