Uses of Class
com.fasterxml.jackson.databind.JsonNode
-
Packages that use JsonNode 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 extensionModule
s (which are registered usingObjectMapper.registerModule(com.fasterxml.jackson.databind.Module)
.com.fasterxml.jackson.databind.node Contains concreteJsonNode
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.databind.util Utility classes for Mapper package. -
-
Uses of JsonNode in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind with type parameters of type JsonNode Modifier and Type Method Description protected <T extends JsonNode>
TJsonNode. _this()
abstract <T extends JsonNode>
TJsonNode. 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>
TJsonNode. require()
Method that may be called to verify thatthis
node is NOT so-called "missing node": that is, one for whichisMissingNode()
returnstrue
.<T extends JsonNode>
TJsonNode. requireNonNull()
Method that may be called to verify thatthis
node is neither so-called "missing node" (that is, one for whichisMissingNode()
returnstrue
) nor "null node" (one for whichisNull()
returnstrue
).<T extends JsonNode>
TObjectMapper. valueToTree(java.lang.Object fromValue)
Method that is reverse ofObjectMapper.treeToValue(com.fasterxml.jackson.core.TreeNode, java.lang.Class<T>)
: it will convert given Java value (usually bean) into its equivalent Tree modeJsonNode
representation.<T extends JsonNode>
TJsonNode. with(java.lang.String exprOrProperty)
Deprecated.Since 2.14 usewithObject(String)
instead<T extends JsonNode>
TJsonNode. withArray(java.lang.String exprOrProperty)
Method that works in one of possible ways, depending on whetherexprOrProperty
is a validJsonPointer
expression or not (valid expression is either empty String""
or starts with leading slash/
character).Methods in com.fasterxml.jackson.databind that return JsonNode Modifier and Type Method Description protected abstract JsonNode
JsonNode. _at(com.fasterxml.jackson.core.JsonPointer ptr)
Helper method used by other methods for traversing the next step of given path expression, and returning matching value node if any: if no match,null
is returned.protected JsonNode
ObjectReader. _bindAndCloseAsTree(com.fasterxml.jackson.core.JsonParser p0)
protected JsonNode
ObjectReader. _bindAsTree(com.fasterxml.jackson.core.JsonParser p)
protected JsonNode
ObjectReader. _bindAsTreeOrNull(com.fasterxml.jackson.core.JsonParser p)
Same asObjectReader._bindAsTree(com.fasterxml.jackson.core.JsonParser)
except end-of-input is reported by returningnull
, not "missing node"protected JsonNode
ObjectReader. _detectBindAndCloseAsTree(java.io.InputStream in)
protected JsonNode
ObjectMapper. _readTreeAndClose(com.fasterxml.jackson.core.JsonParser p0)
Similar toObjectMapper._readMapAndClose(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.JavaType)
but specialized forJsonNode
reading.JsonNode
JsonNode. at(com.fasterxml.jackson.core.JsonPointer ptr)
Method for locating node specified by given JSON pointer instances.JsonNode
JsonNode. at(java.lang.String jsonPtrExpr)
Convenience method that is functionally equivalent to:JsonNode
ObjectReader. createArrayNode()
JsonNode
ObjectReader. createObjectNode()
abstract JsonNode
JsonNode. findParent(java.lang.String fieldName)
Method for finding a JSON Object that contains specified field, within this node or its descendants.abstract JsonNode
JsonNode. findPath(java.lang.String fieldName)
Method similar tofindValue(java.lang.String)
, but that will return a "missing node" instead of null if no field is found.abstract JsonNode
JsonNode. findValue(java.lang.String fieldName)
Method for finding the first 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(java.lang.String fieldName)
Method for accessing value of the specified field of an object node.JsonNode
ObjectMapper. missingNode()
JsonNode
ObjectReader. missingNode()
JsonNode
ObjectMapper. nullNode()
JsonNode
ObjectReader. nullNode()
abstract JsonNode
JsonNode. path(int index)
This method is similar toget(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 forisMissingNode()
) will be returned.abstract JsonNode
JsonNode. path(java.lang.String fieldName)
This method is similar toget(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 forisMissingNode()
) will be returned.JsonNode
DeserializationContext. readTree(com.fasterxml.jackson.core.JsonParser p)
Convenience method for reading the value that passedJsonParser
points to as aJsonNode
.JsonNode
ObjectMapper. readTree(byte[] content)
Same asObjectMapper.readTree(InputStream)
except content read from passed-in byte array.JsonNode
ObjectMapper. readTree(byte[] content, int offset, int len)
Same asObjectMapper.readTree(InputStream)
except content read from passed-in byte array.JsonNode
ObjectMapper. readTree(java.io.File file)
Same asObjectMapper.readTree(InputStream)
except content read from passed-inFile
.JsonNode
ObjectMapper. readTree(java.io.InputStream in)
Method to deserialize JSON content as tree expressed using set ofJsonNode
instances.JsonNode
ObjectMapper. readTree(java.io.Reader r)
Same asObjectMapper.readTree(InputStream)
except content accessed through passed-inReader
JsonNode
ObjectMapper. readTree(java.lang.String content)
Same asObjectMapper.readTree(InputStream)
except content read from passed-inString
JsonNode
ObjectMapper. readTree(java.net.URL source)
Same asObjectMapper.readTree(InputStream)
except content read from passed-inURL
.JsonNode
ObjectReader. readTree(byte[] json)
Same asObjectReader.readTree(InputStream)
except content read from passed-in byte array.JsonNode
ObjectReader. readTree(byte[] json, int offset, int len)
Same asObjectReader.readTree(InputStream)
except content read from passed-in byte array.JsonNode
ObjectReader. readTree(java.io.DataInput src)
Same asObjectReader.readTree(InputStream)
except content read using passed-inDataInput
.JsonNode
ObjectReader. readTree(java.io.InputStream src)
Method that reads content from given input source, using configuration of this reader, and binds it as JSON Tree.JsonNode
ObjectReader. readTree(java.io.Reader src)
Same asObjectReader.readTree(InputStream)
except content accessed through passed-inReader
JsonNode
ObjectReader. readTree(java.lang.String json)
Same asObjectReader.readTree(InputStream)
except content read from passed-inString
JsonNode
JsonNode. required(int index)
Method is functionally equivalent topath(index).required()
and can be used to check that this node is anArrayNode
(that is, represents JSON Array value) and has value for specifiedindex
(but note that value may be explicit JSON null value).JsonNode
JsonNode. required(java.lang.String propertyName)
Method is functionally equivalent topath(fieldName).required()
and can be used to check that this node is anObjectNode
(that is, represents JSON Object value) and has value for specified property with keyfieldName
(but note that value may be explicit JSON null value).JsonNode
JsonNode. requiredAt(com.fasterxml.jackson.core.JsonPointer path)
Method is functionally equivalent toat(path).required()
and can be used to check that there is an actual value node at specifiedJsonPointer
starting fromthis
node (but note that value may be explicit JSON null value).JsonNode
JsonNode. requiredAt(java.lang.String pathExpr)
Method is functionally equivalent toat(pathExpr).required()
and can be used to check that there is an actual value node at specifiedJsonPointer
starting fromthis
node (but note that value may be explicit JSON null value).Methods in com.fasterxml.jackson.databind that return types with arguments of type JsonNode Modifier and Type Method Description java.util.Iterator<JsonNode>
JsonNode. elements()
Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node.java.util.Iterator<java.util.Map.Entry<java.lang.String,JsonNode>>
JsonNode. fields()
java.util.List<JsonNode>
JsonNode. findParents(java.lang.String fieldName)
Method for finding a JSON Object that contains specified field, within this node or its descendants.abstract java.util.List<JsonNode>
JsonNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
JsonNode. findValues(java.lang.String fieldName)
Method for finding JSON Object fields with specified name -- both immediate child values and descendants -- and returning found ones as aList
.abstract java.util.List<JsonNode>
JsonNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.Iterator<JsonNode>
JsonNode. iterator()
Same as callingelements()
; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs.java.util.Set<java.util.Map.Entry<java.lang.String,JsonNode>>
JsonNode. properties()
Accessor that will return properties ofObjectNode
similar to howMap.entrySet()
works; for other node types will return emptySet
.Methods in com.fasterxml.jackson.databind with parameters of type JsonNode Modifier and Type Method Description boolean
JsonNode. equals(java.util.Comparator<JsonNode> comparator, JsonNode other)
Entry method for invoking customizable comparison, using passed-inComparator
object.<T> T
DeserializationContext. readTreeAsValue(JsonNode n, JavaType targetType)
Same asDeserializationContext.readTreeAsValue(JsonNode, Class)
but will fully resolvedJavaType
astargetType
<T> T
DeserializationContext. readTreeAsValue(JsonNode n, java.lang.Class<T> targetType)
Helper method similar toObjectReader.treeToValue(TreeNode, Class)
which will read contents of given tree (JsonNode
) and bind them into specified target type.<T> T
ObjectReader. readValue(JsonNode content)
Convenience method for converting results from given JSON tree into given value type.<T> T
ObjectReader. readValue(JsonNode content, java.lang.Class<T> valueType)
Same asObjectReader.readValue(JsonNode)
except that target value type overridden asvalueType
void
ObjectMapper. writeTree(com.fasterxml.jackson.core.JsonGenerator g, JsonNode rootNode)
Method to serialize given JSON Tree, using generator provided.Method parameters in com.fasterxml.jackson.databind with type arguments of type JsonNode Modifier and Type Method Description boolean
JsonNode. equals(java.util.Comparator<JsonNode> comparator, JsonNode other)
Entry method for invoking customizable comparison, using passed-inComparator
object.abstract java.util.List<JsonNode>
JsonNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
abstract java.util.List<JsonNode>
JsonNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
-
Uses of JsonNode in com.fasterxml.jackson.databind.deser
Methods in com.fasterxml.jackson.databind.deser with parameters of type JsonNode Modifier and Type Method Description protected void
SettableAnyProperty.JsonNodeFieldAnyProperty. setProperty(java.lang.Object instance, java.lang.String propName, JsonNode value)
Method parameters in com.fasterxml.jackson.databind.deser with type arguments of type JsonNode Modifier and Type Method Description protected JsonDeserializer<?>
BasicDeserializerFactory. _findCustomTreeNodeDeserializer(java.lang.Class<? extends JsonNode> type, DeserializationConfig config, BeanDescription beanDesc)
JsonDeserializer<?>
Deserializers.Base. findTreeNodeDeserializer(java.lang.Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc)
JsonDeserializer<?>
Deserializers. findTreeNodeDeserializer(java.lang.Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc)
Method called to locate deserializer for specified JSON tree node type. -
Uses of JsonNode in com.fasterxml.jackson.databind.deser.std
Methods in com.fasterxml.jackson.databind.deser.std that return JsonNode Modifier and Type Method Description JsonNode
JsonNodeDeserializer. 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).JsonNode
JsonNodeDeserializer. getNullValue(DeserializationContext ctxt)
Methods in com.fasterxml.jackson.databind.deser.std that return types with arguments of type JsonNode Modifier and Type Method Description static JsonDeserializer<? extends JsonNode>
JsonNodeDeserializer. getDeserializer(java.lang.Class<?> nodeClass)
Factory method for accessing deserializer for specific node typeMethods in com.fasterxml.jackson.databind.deser.std with parameters of type JsonNode Modifier and Type Method Description abstract T
StdNodeBasedDeserializer. convert(JsonNode root, DeserializationContext ctxt)
T
StdNodeBasedDeserializer. convert(JsonNode root, DeserializationContext ctxt, T newValue)
Facilitates usage withObjectMapper.readerForUpdating(Object)
andStdNodeBasedDeserializer.deserialize(JsonParser, DeserializationContext, Object)
by eliminating the need to manually convert the value to aJsonNode
. -
Uses of JsonNode in com.fasterxml.jackson.databind.ext
Methods in com.fasterxml.jackson.databind.ext that return JsonNode Modifier and Type Method Description JsonNode
DOMSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15 -
Uses of JsonNode in com.fasterxml.jackson.databind.jsonschema
Methods in com.fasterxml.jackson.databind.jsonschema that return JsonNode Modifier and Type Method Description static JsonNode
JsonSchema. getDefaultSchemaNode()
Deprecated.Get the default schema node.JsonNode
SchemaAware. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Get the representation of the schema to which this serializer will conform.JsonNode
SchemaAware. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Deprecated.Get the representation of the schema to which this serializer will conform. -
Uses of JsonNode in com.fasterxml.jackson.databind.module
Method parameters in com.fasterxml.jackson.databind.module with type arguments of type JsonNode Modifier and Type Method Description JsonDeserializer<?>
SimpleDeserializers. findTreeNodeDeserializer(java.lang.Class<? extends JsonNode> nodeType, DeserializationConfig config, BeanDescription beanDesc)
-
Uses of JsonNode in com.fasterxml.jackson.databind.node
Subclasses of JsonNode in com.fasterxml.jackson.databind.node Modifier and Type Class Description class
ArrayNode
Node class that represents Arrays mapped from JSON content.class
BaseJsonNode
Abstract base class common to all standardJsonNode
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 callingObjectMapper
).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".Fields in com.fasterxml.jackson.databind.node with type parameters of type JsonNode Modifier and Type Field Description protected java.util.Map<java.lang.String,JsonNode>
ObjectNode. _children
Methods in com.fasterxml.jackson.databind.node with type parameters of type JsonNode Modifier and Type Method Description <T extends JsonNode>
TMissingNode. deepCopy()
<T extends JsonNode>
TValueNode. deepCopy()
All current value nodes are immutable, so we can just return them as is.<T extends JsonNode>
TObjectNode. set(java.lang.String propertyName, JsonNode value)
Method that will set specified property, replacing old value, if any.<T extends JsonNode>
TObjectNode. setAll(ObjectNode other)
Method for adding all properties of the given Object, overriding any existing values for those properties.<T extends JsonNode>
TObjectNode. setAll(java.util.Map<java.lang.String,? extends JsonNode> properties)
Method for adding given properties to this object node, overriding any existing values for those properties.<T extends JsonNode>
TObjectNode. without(java.lang.String propertyName)
Method for removing property from this ObjectNode, and returning instance after removal.<T extends JsonNode>
TObjectNode. without(java.util.Collection<java.lang.String> propertyNames)
Method for removing specified field properties out of this ObjectNode.Methods in com.fasterxml.jackson.databind.node that return JsonNode Modifier and Type Method Description protected JsonNode
ArrayNode. _at(com.fasterxml.jackson.core.JsonPointer ptr)
protected JsonNode
ObjectNode. _at(com.fasterxml.jackson.core.JsonPointer ptr)
protected JsonNode
ValueNode. _at(com.fasterxml.jackson.core.JsonPointer ptr)
protected JsonNode
TreeTraversingParser. currentNode()
protected JsonNode
TreeTraversingParser. currentNumericNode()
JsonNode
BaseJsonNode. findPath(java.lang.String fieldName)
JsonNode
ArrayNode. findValue(java.lang.String fieldName)
JsonNode
ObjectNode. findValue(java.lang.String propertyName)
JsonNode
ValueNode. findValue(java.lang.String fieldName)
JsonNode
ArrayNode. get(int index)
JsonNode
ArrayNode. get(java.lang.String fieldName)
abstract JsonNode
ContainerNode. get(int index)
abstract JsonNode
ContainerNode. get(java.lang.String fieldName)
JsonNode
ObjectNode. get(int index)
JsonNode
ObjectNode. get(java.lang.String propertyName)
JsonNode
ValueNode. get(int index)
JsonNode
ValueNode. get(java.lang.String fieldName)
JsonNode
ContainerNode. missingNode()
JsonNode
JsonNodeFactory. missingNode()
JsonNode
ArrayNode. path(int index)
JsonNode
ArrayNode. path(java.lang.String fieldName)
JsonNode
ObjectNode. path(int index)
JsonNode
ObjectNode. path(java.lang.String propertyName)
JsonNode
ValueNode. path(int index)
JsonNode
ValueNode. path(java.lang.String fieldName)
JsonNode
ObjectNode. put(java.lang.String propertyName, JsonNode value)
Deprecated.Since 2.4 use eitherObjectNode.set(String,JsonNode)
orObjectNode.replace(String,JsonNode)
,JsonNode
ObjectNode. putAll(ObjectNode other)
Deprecated.Since 2.4 useObjectNode.setAll(ObjectNode)
,JsonNode
ObjectNode. putAll(java.util.Map<java.lang.String,? extends JsonNode> properties)
Deprecated.Since 2.4 useObjectNode.setAll(Map)
,JsonNode
ObjectNode. putIfAbsent(java.lang.String propertyName, JsonNode value)
Method that will set value of specified property if (and only if) it had no set value previously.JsonNode
ArrayNode. remove(int index)
Method for removing an entry from this ArrayNode.JsonNode
ObjectNode. remove(java.lang.String propertyName)
Method for removing a property from thisObjectNode
.JsonNode
ObjectNode. replace(java.lang.String propertyName, JsonNode value)
Method for replacing value of specific property with passed value, and returning value (or null if none).JsonNode
MissingNode. require()
JsonNode
ArrayNode. required(int index)
JsonNode
BaseJsonNode. required(int index)
JsonNode
BaseJsonNode. required(java.lang.String fieldName)
JsonNode
ObjectNode. required(java.lang.String propertyName)
JsonNode
MissingNode. requireNonNull()
JsonNode
NullNode. requireNonNull()
JsonNode
ArrayNode. set(int index, JsonNode value)
Method that will set specified field, replacing old value, if any.Methods in com.fasterxml.jackson.databind.node that return types with arguments of type JsonNode Modifier and Type Method Description protected java.util.Map<java.lang.String,JsonNode>
ObjectNode. _contentsToSerialize(SerializerProvider ctxt)
Helper method for encapsulating details of accessing child node entries to serialize.java.util.Iterator<JsonNode>
ArrayNode. elements()
Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node.java.util.Iterator<JsonNode>
ObjectNode. elements()
java.util.Iterator<java.util.Map.Entry<java.lang.String,JsonNode>>
ObjectNode. fields()
Method to use for accessing all properties (with both names and values) of this JSON Object.java.util.List<JsonNode>
ArrayNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ObjectNode. findParents(java.lang.String propertyName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ValueNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ArrayNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ObjectNode. findValues(java.lang.String propertyName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ValueNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.Set<java.util.Map.Entry<java.lang.String,JsonNode>>
ObjectNode. properties()
Method to use for accessing all properties (with both names and values) of this JSON Object.Methods in com.fasterxml.jackson.databind.node with parameters of type JsonNode Modifier and Type Method Description protected ArrayNode
ArrayNode. _add(JsonNode node)
protected ArrayNode
ArrayNode. _insert(int index, JsonNode node)
protected ObjectNode
ObjectNode. _put(java.lang.String fieldName, JsonNode value)
protected ArrayNode
ArrayNode. _set(int index, JsonNode node)
protected boolean
BaseJsonNode. _withXxxMayReplace(JsonNode node, JsonNode.OverwriteMode overwriteMode)
protected void
ArrayNode. _withXxxSetArrayElement(int index, JsonNode value)
protected void
BaseJsonNode. _withXxxVerifyReplace(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex, JsonNode toReplace)
ArrayNode
ArrayNode. add(JsonNode value)
Method for adding specified node at the end of this array.boolean
ArrayNode. equals(java.util.Comparator<JsonNode> comparator, JsonNode o)
boolean
ObjectNode. equals(java.util.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(java.lang.String propertyName, JsonNode value)
Deprecated.Since 2.4 use eitherObjectNode.set(String,JsonNode)
orObjectNode.replace(String,JsonNode)
,JsonNode
ObjectNode. putIfAbsent(java.lang.String propertyName, JsonNode value)
Method that will set value of specified property if (and only if) it had no set value previously.JsonNode
ObjectNode. replace(java.lang.String propertyName, 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.<T extends JsonNode>
TObjectNode. set(java.lang.String propertyName, JsonNode value)
Method that will set specified property, replacing old value, if any.Method parameters in com.fasterxml.jackson.databind.node with type arguments of type JsonNode Modifier and Type Method Description ArrayNode
ArrayNode. addAll(java.util.Collection<? extends JsonNode> nodes)
Method for adding given nodes as child nodes of this array node.boolean
ArrayNode. equals(java.util.Comparator<JsonNode> comparator, JsonNode o)
boolean
ObjectNode. equals(java.util.Comparator<JsonNode> comparator, JsonNode o)
java.util.List<JsonNode>
ArrayNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ObjectNode. findParents(java.lang.String propertyName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ValueNode. findParents(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ArrayNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ObjectNode. findValues(java.lang.String propertyName, java.util.List<JsonNode> foundSoFar)
java.util.List<JsonNode>
ValueNode. findValues(java.lang.String fieldName, java.util.List<JsonNode> foundSoFar)
JsonNode
ObjectNode. putAll(java.util.Map<java.lang.String,? extends JsonNode> properties)
Deprecated.Since 2.4 useObjectNode.setAll(Map)
,<T extends JsonNode>
TObjectNode. setAll(java.util.Map<java.lang.String,? extends JsonNode> properties)
Method for adding given properties to this object node, overriding any existing values for those properties.Constructors in com.fasterxml.jackson.databind.node with parameters of type JsonNode Constructor Description TreeTraversingParser(JsonNode n)
TreeTraversingParser(JsonNode n, com.fasterxml.jackson.core.ObjectCodec codec)
Constructor parameters in com.fasterxml.jackson.databind.node with type arguments of type JsonNode Constructor Description ArrayNode(JsonNodeFactory nf, java.util.List<JsonNode> children)
ObjectNode(JsonNodeFactory nc, java.util.Map<java.lang.String,JsonNode> children)
-
Uses of JsonNode in com.fasterxml.jackson.databind.ser
Methods in com.fasterxml.jackson.databind.ser with parameters of type JsonNode Modifier and Type Method Description protected void
BeanPropertyWriter. _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
-
Uses of JsonNode in com.fasterxml.jackson.databind.ser.impl
Methods in com.fasterxml.jackson.databind.ser.impl that return JsonNode Modifier and Type Method Description protected JsonNode
IndexedStringListSerializer. contentSchema()
protected JsonNode
StringCollectionSerializer. contentSchema()
JsonNode
StringArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15Methods in com.fasterxml.jackson.databind.ser.impl with parameters of type JsonNode Modifier and Type Method Description protected void
UnwrappingBeanPropertyWriter. _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
-
Uses of JsonNode in com.fasterxml.jackson.databind.ser.std
Methods in com.fasterxml.jackson.databind.ser.std that return JsonNode Modifier and Type Method Description protected abstract JsonNode
StaticListSerializerBase. contentSchema()
JsonNode
AsArraySerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
BeanSerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.JsonNode
BooleanSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
ByteArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
ClassSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
DateTimeSerializerBase. getSchema(SerializerProvider serializers, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
EnumSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
FileSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
JsonValueSerializer. getSchema(SerializerProvider ctxt, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
MapSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
NullSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
NumberSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
NumberSerializers.Base. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
RawSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
SqlTimeSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StaticListSerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.BooleanArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.CharArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.DoubleArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.FloatArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.IntArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.LongArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdArraySerializers.ShortArraySerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdDelegatingSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdDelegatingSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Deprecated.Since 2.15JsonNode
StdJdkSerializers.AtomicBooleanSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdJdkSerializers.AtomicIntegerSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdJdkSerializers.AtomicLongSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdScalarSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
StdSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15, we recommend use of external JSON Schema generator moduleJsonNode
StdSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint, boolean isOptional)
Deprecated.Since 2.15, we recommend use of external JSON Schema generator moduleJsonNode
StringSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
ToEmptyObjectSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
TokenBufferSerializer. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15JsonNode
ToStringSerializerBase. getSchema(SerializerProvider provider, java.lang.reflect.Type typeHint)
Deprecated.Since 2.15 -
Uses of JsonNode in com.fasterxml.jackson.databind.util
Methods in com.fasterxml.jackson.databind.util that return types with arguments of type JsonNode Modifier and Type Method Description static java.util.stream.Collector<JsonNode,ArrayNode,ArrayNode>
JacksonCollectors. toArrayNode()
static java.util.stream.Collector<JsonNode,ArrayNode,ArrayNode>
JacksonCollectors. toArrayNode(JsonNodeCreator nodeCreator)
-