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

    Modifier and Type
    Method
    Description
    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)
    final 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.
    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.
    JsonNode.withArray(String expr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
    Short-cut equivalent to:
  • Uses of ArrayNode in com.fasterxml.jackson.databind.node

    Modifier and Type
    Method
    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.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.
    ArrayNode.add(JsonNode value)
    Method for adding specified node at the end of this array.
    ArrayNode.add(Boolean v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(Double v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(Float v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(Integer v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(Long v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(Short v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.add(String v)
    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.
    ArrayNode.addAll(ArrayNode other)
    Method for adding all child nodes of given Array, appending to child nodes this array contains
    ArrayNode.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.
    ArrayNode.addPOJO(Object pojo)
    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 empty ArrayNode Construction is done using registered JsonNodeFactory.
    final ArrayNode
    ContainerNode.arrayNode(int capacity)
    Factory method that constructs and returns an ArrayNode with an initial capacity Construction is done using registered JsonNodeFactory
    JsonNodeCreator.arrayNode()
     
    JsonNodeCreator.arrayNode(int capacity)
    Factory method for constructing a JSON Array node with an initial capacity
    JsonNodeFactory.arrayNode()
    Factory method for constructing an empty JSON Array node
    JsonNodeFactory.arrayNode(int capacity)
    Factory method for constructing a JSON Array node with an initial capacity
    ArrayNode.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.
    ArrayNode.insert(int index, JsonNode value)
    Method for inserting specified child node as an element of this Array.
    ArrayNode.insert(int index, Boolean value)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, Double v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, Float v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, Integer v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, Long v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, Short value)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.insert(int index, String v)
    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)
     
    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.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 value
    ArrayNode.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)
     
    ArrayNode.set(int index, Boolean v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.set(int index, Double v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.set(int index, Float v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    ArrayNode.set(int index, Integer v)
    Alternative method that we need to avoid bumping into NPE issues with auto-unboxing.
    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.
    ArrayNode.set(int index, String v)
    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.setPOJO(int index, Object pojo)
     
    ArrayNode.setRawValue(int index, RawValue raw)
     
    ArrayNode.withArray(String exprOrProperty)
     
    BaseJsonNode.withArray(com.fasterxml.jackson.core.JsonPointer ptr, JsonNode.OverwriteMode overwriteMode, boolean preferIndex)
     
    ObjectNode.withArray(String exprOrProperty)
     
    Methods in com.fasterxml.jackson.databind.node with parameters of type ArrayNode
    Modifier and Type
    Method
    Description
    protected boolean
    ArrayNode._childrenEqual(ArrayNode other)
     
    ArrayNode.addAll(ArrayNode other)
    Method for adding all child nodes of given Array, appending to child nodes this array contains