Uses of Class
com.fasterxml.jackson.databind.node.ArrayNode
Packages that use ArrayNode
Package
Description
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.Contains concrete
JsonNode
implementations
Jackson uses for the Tree model.-
Uses of ArrayNode in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return ArrayNodeModifier and TypeMethodDescriptionObjectMapper.createArrayNode()
Note: return type is co-variant, as basic ObjectCodec abstraction cannot refer to concrete node types (as it's part of core package, whereas impls are part of mapper package)final ArrayNode
JsonNode.withArray
(com.fasterxml.jackson.core.JsonPointer ptr) Same asJsonNode.withArray(JsonPointer, OverwriteMode, boolean)
but with defaults ofOvewriteMode#NULLS
(overwrite mode) andtrue
forpreferIndex
.JsonNode.withArray
(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Method that can be called on Object or Array nodes, to access a Array-valued node pointed to by givenJsonPointer
, if such a node exists: or if not, an attempt is made to create one and return it.JsonNode.withArray
(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) Short-cut equivalent to:JsonNode.withArrayProperty
(String propName) Method similar toJsonNode.withArray(JsonPointer, OverwriteMode, boolean)
-- basically short-cut to: -
Uses of ArrayNode in com.fasterxml.jackson.databind.node
Methods in com.fasterxml.jackson.databind.node that return ArrayNodeModifier and TypeMethodDescriptionprotected ArrayNode
protected ArrayNode
protected ArrayNode
protected ArrayNode
ArrayNode._withArray
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNode
BaseJsonNode._withArray
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNode
ObjectNode._withArray
(com.fasterxml.jackson.core.JsonPointer origPtr, com.fasterxml.jackson.core.JsonPointer currentPtr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) protected ArrayNode
ArrayNode._withArrayAddTailElement
(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex) protected ArrayNode
ObjectNode._withArrayAddTailProperty
(com.fasterxml.jackson.core.JsonPointer tail, boolean preferIndex) ArrayNode.add
(boolean v) Method for adding specified boolean value at the end of this array.ArrayNode.add
(byte[] v) Method for adding specified binary value at the end of this array (note: when serializing as JSON, will be output Base64 encoded)ArrayNode.add
(double v) Method for adding specified number at the end of this array.ArrayNode.add
(float v) Method for adding specified number at the end of this array.ArrayNode.add
(int v) Method for adding specified number at the end of this array.ArrayNode.add
(long v) Method for adding specified number at the end of this array.ArrayNode.add
(short v) Method for adding specified number at the end of this array.Method for adding specified node at the end of this array.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for adding specified String value at the end of this array.ArrayNode.add
(BigDecimal v) Method for adding specified number at the end of this array.ArrayNode.add
(BigInteger v) Method for adding specified number at the end of this array.Method for adding all child nodes of given Array, appending to child nodes this array containsArrayNode.addAll
(Collection<? extends JsonNode> nodes) Method for adding given nodes as child nodes of this array node.ArrayNode.addArray()
Method that will construct an ArrayNode and add it at the end of this array node.ArrayNode.addNull()
Method that will add a null value at the end of this array node.Method that will construct a POJONode and add it at the end of this array node.ArrayNode.addRawValue
(RawValue raw) final ArrayNode
ContainerNode.arrayNode()
Factory method that constructs and returns an emptyArrayNode
Construction is done using registeredJsonNodeFactory
.final ArrayNode
ContainerNode.arrayNode
(int capacity) Factory method that constructs and returns anArrayNode
with an initial capacity Construction is done using registeredJsonNodeFactory
JsonNodeCreator.arrayNode()
JsonNodeCreator.arrayNode
(int capacity) Factory method for constructing a JSON Array node with an initial capacityJsonNodeFactory.arrayNode()
Factory method for constructing an empty JSON Array nodeJsonNodeFactory.arrayNode
(int capacity) Factory method for constructing a JSON Array node with an initial capacityArrayNode.deepCopy()
ArrayNode.insert
(int index, boolean v) Method that will insert specified String at specified position in this array.ArrayNode.insert
(int index, byte[] v) Method that will insert specified binary value at specified position in this array (note: when written as JSON, will be Base64 encoded)ArrayNode.insert
(int index, double v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert
(int index, float v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert
(int index, int v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert
(int index, long v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert
(int index, short v) Method that will insert specified numeric value at specified position in this array.Method for inserting specified child node as an element of this Array.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method that will insert specified String at specified position in this array.ArrayNode.insert
(int index, BigDecimal v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insert
(int index, BigInteger v) Method that will insert specified numeric value at specified position in this array.ArrayNode.insertArray
(int index) Method for creating an array node, inserting it at the specified point in the array, and returning the newly created array (note: NOT 'this' array)ArrayNode.insertNull
(int index) Method that will insert a null value at specified position in this array.ArrayNode.insertPOJO
(int index, Object pojo) Method that will construct a POJONode and insert it at specified position in this array.ArrayNode.insertRawValue
(int index, RawValue raw) Method that will construct an ArrayNode and add it as a property of thisObjectNode
, replacing old value, if any.ArrayNode.removeAll()
Method for removing all elements of this array, leaving the array empty.ArrayNode.set
(int index, boolean v) Method for setting value of a field to specified String value.ArrayNode.set
(int index, byte[] v) Method for setting value of a field to specified binary valueArrayNode.set
(int index, double v) Method for setting value of a field to specified numeric value.ArrayNode.set
(int index, float v) Method for setting value of a field to specified numeric value.ArrayNode.set
(int index, int v) ArrayNode.set
(int index, long v) ArrayNode.set
(int index, short v) Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.Method for setting value of a field to specified String value.ArrayNode.set
(int index, BigDecimal v) Method for setting value of a field to specified numeric value.ArrayNode.set
(int index, BigInteger v) Method for setting value of a field to specified numeric value.ArrayNode.setNull
(int index) ArrayNode.setRawValue
(int index, RawValue raw) BaseJsonNode.withArray
(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex) ObjectNode.withArrayProperty
(String propName) Methods in com.fasterxml.jackson.databind.node with parameters of type ArrayNodeModifier and TypeMethodDescriptionprotected boolean
ArrayNode._childrenEqual
(ArrayNode other) Method for adding all child nodes of given Array, appending to child nodes this array contains