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.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
Modifier and Type | Method and Description |
---|---|
ArrayNode |
ObjectMapper.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)
|
ArrayNode |
JsonNode.withArray(com.fasterxml.jackson.core.JsonPointer ptr)
Same as
JsonNode.withArray(JsonPointer, OverwriteMode, boolean) but
with defaults of OvewriteMode#NULLS (overwrite mode)
and true for preferIndex . |
ArrayNode |
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 given
JsonPointer , if such a node exists:
or if not, an attempt is made to create one and return it. |
ArrayNode |
JsonNode.withArray(String expr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex)
Short-cut equivalent to:
|
Modifier and Type | Method and Description |
---|---|
protected ArrayNode |
ArrayNode._add(JsonNode node) |
protected ArrayNode |
ArrayNode._insert(int index,
JsonNode node) |
protected ArrayNode |
ArrayNode._set(int index,
JsonNode node) |
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 |
ArrayNode.add(BigDecimal v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(BigInteger v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(boolean v)
Method for adding specified boolean value at the end of this array.
|
ArrayNode |
ArrayNode.add(Boolean v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
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 |
ArrayNode.add(double v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(Double v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.add(float v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(Float v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.add(int v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(Integer v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.add(JsonNode value)
Method for adding specified node at the end of this array.
|
ArrayNode |
ArrayNode.add(long v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(Long v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.add(short v)
Method for adding specified number at the end of this array.
|
ArrayNode |
ArrayNode.add(Short v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.add(String v)
Method for adding specified String value at the end of this array.
|
ArrayNode |
ArrayNode.addAll(ArrayNode other)
Method for adding all child nodes of given Array, appending to
child nodes this array contains
|
ArrayNode |
ArrayNode.addAll(Collection<? extends JsonNode> nodes)
Method for adding given nodes as child nodes of this array node.
|
ArrayNode |
ArrayNode.addArray()
Method that will construct an ArrayNode and add it at the end
of this array node.
|
ArrayNode |
ArrayNode.addNull()
Method that will add a null value at the end of this array node.
|
ArrayNode |
ArrayNode.addPOJO(Object pojo)
Method that will construct a POJONode and add it at the end
of this array node.
|
ArrayNode |
ArrayNode.addRawValue(RawValue raw) |
ArrayNode |
ContainerNode.arrayNode()
Factory method that constructs and returns an empty
ArrayNode
Construction is done using registered JsonNodeFactory . |
ArrayNode |
JsonNodeCreator.arrayNode() |
ArrayNode |
JsonNodeFactory.arrayNode()
Factory method for constructing an empty JSON Array node
|
ArrayNode |
ContainerNode.arrayNode(int capacity)
Factory method that constructs and returns an
ArrayNode with an initial capacity
Construction is done using registered JsonNodeFactory |
ArrayNode |
JsonNodeCreator.arrayNode(int capacity)
Factory method for constructing a JSON Array node with an initial capacity
|
ArrayNode |
JsonNodeFactory.arrayNode(int capacity)
Factory method for constructing a JSON Array node with an initial capacity
|
ArrayNode |
ArrayNode.deepCopy() |
ArrayNode |
ArrayNode.insert(int index,
BigDecimal v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
BigInteger v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
boolean v)
Method that will insert specified String
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Boolean value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
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 |
ArrayNode.insert(int index,
double v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Double v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.insert(int index,
float v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Float v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.insert(int index,
int v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Integer v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.insert(int index,
JsonNode value)
Method for inserting specified child node as an element
of this Array.
|
ArrayNode |
ArrayNode.insert(int index,
long v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Long v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.insert(int index,
short v)
Method that will insert specified numeric value
at specified position in this array.
|
ArrayNode |
ArrayNode.insert(int index,
Short value)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.insert(int index,
String v)
Method that will insert specified String
at specified position in this array.
|
ArrayNode |
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 |
ArrayNode.insertNull(int index)
Method that will insert a null value
at specified position in this array.
|
ArrayNode |
ArrayNode.insertPOJO(int index,
Object pojo)
Method that will construct a POJONode and
insert it at specified position in this array.
|
ArrayNode |
ArrayNode.insertRawValue(int index,
RawValue raw) |
ArrayNode |
ObjectNode.putArray(String propertyName)
Method that will construct an ArrayNode and add it as a
property of this
ObjectNode , replacing old value, if any. |
ArrayNode |
ArrayNode.removeAll()
Method for removing all elements of this array, leaving the
array empty.
|
ArrayNode |
ArrayNode.set(int index,
BigDecimal v)
Method for setting value of a field to specified numeric value.
|
ArrayNode |
ArrayNode.set(int index,
BigInteger v)
Method for setting value of a field to specified numeric value.
|
ArrayNode |
ArrayNode.set(int index,
boolean v)
Method for setting value of a field to specified String value.
|
ArrayNode |
ArrayNode.set(int index,
Boolean v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.set(int index,
byte[] v)
Method for setting value of a field to specified binary value
|
ArrayNode |
ArrayNode.set(int index,
double v)
Method for setting value of a field to specified numeric value.
|
ArrayNode |
ArrayNode.set(int index,
Double v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.set(int index,
float v)
Method for setting value of a field to specified numeric value.
|
ArrayNode |
ArrayNode.set(int index,
Float v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.set(int index,
int v) |
ArrayNode |
ArrayNode.set(int index,
Integer v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.set(int index,
long v) |
ArrayNode |
ArrayNode.set(int index,
Long v) |
ArrayNode |
ArrayNode.set(int index,
short v) |
ArrayNode |
ArrayNode.set(int index,
Short v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ArrayNode |
ArrayNode.set(int index,
String v)
Method for setting value of a field to specified String value.
|
ArrayNode |
ArrayNode.setNull(int index) |
ArrayNode |
ArrayNode.setPOJO(int index,
Object pojo) |
ArrayNode |
ArrayNode.setRawValue(int index,
RawValue raw) |
ArrayNode |
BaseJsonNode.withArray(com.fasterxml.jackson.core.JsonPointer ptr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
ArrayNode |
ArrayNode.withArray(String exprOrProperty) |
ArrayNode |
ObjectNode.withArray(String exprOrProperty) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ArrayNode._childrenEqual(ArrayNode other) |
ArrayNode |
ArrayNode.addAll(ArrayNode other)
Method for adding all child nodes of given Array, appending to
child nodes this array contains
|
Copyright © 2008–2022 FasterXML. All rights reserved.