| Modifier and Type | Field and Description |
|---|---|
| protected final Map | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected JsonNode | _at(JsonPointer ptr)
Implements abstract tools. 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, |
| protected boolean | |
| protected Map | _contentsToSerialize(SerializationContext ctxt)
Helper method for encapsulating details of accessing child node entries to serialize. |
| protected ObjectNode | |
| protected String | _valueDesc()
Implements abstract tools. Method for implementation classes to return a short description of contained value, to be used in error messages. |
| protected ArrayNode | _withArray(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Overrides tools.
|
| protected ArrayNode | |
| protected ObjectNode | _withObject(JsonPointer origPtr, JsonPointer currentPtr, JsonNode.
Implements abstract tools.
|
| protected ObjectNode | |
| public JsonToken | asToken()
Implements abstract tools. Implements tools. Method that can be used for efficient type detection when using stream abstraction for traversing nodes. |
| public ObjectNode | deepCopy()
Implements abstract tools. 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. |
| public boolean | equals(Comparator<JsonNode> comparator, JsonNode o)
Overrides tools. Entry method for invoking customizable comparison, using passed-in
|
| public boolean | equals(Object o)
Implements abstract tools. Equality for node objects is defined as full (deep) value equality. |
| public ObjectNode | findParent(String propertyName)
Implements abstract tools. Method for finding a JSON Object that contains specified field, within this node or its descendants. |
| public List | findParents(String propertyName, List<JsonNode> foundSoFar)
Implements abstract tools.
|
| public JsonNode | findValue(String propertyName)
Implements abstract tools. Method for finding the first JSON Object field with specified name in this node or its child nodes, and returning value it has. |
| public List | findValues(String propertyName, List<JsonNode> foundSoFar)
Implements abstract tools.
|
| public List | findValuesAsString(String propertyName, List<String> foundSoFar)
Implements abstract tools.
|
| public void | forEachEntry(BiConsumer<? super String, ? super JsonNode> action)
Overrides tools. If this node is an |
| public JsonNode | get(int index)
Implements abstract tools. Implements tools. Method for accessing value of the specified element of an array node. |
| public JsonNode | get(String propertyName)
Implements abstract tools. Implements tools. Method for accessing value of the specified property of an Object node. |
| public JsonNodeType | getNodeType()
Implements abstract tools. Return the type of this node |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public boolean | isEmpty(SerializationContext serializers)
Overrides tools. Method that may be called on instance to determine if it is considered "empty" for purposes of serialization filtering or not. |
| public boolean | isEmpty()
Overrides tools. Convenience method that is functionally same as:
size() == 0
|
| public final boolean | isObject()
Overrides tools. Implements tools. Method that returns true if this node is an Object node, false otherwise. |
| public Optional | optional(String propertyName)
Overrides tools. Method for accessing value of the specified field of an object node. |
| public JsonNode | path(int index)
Implements abstract tools. Implements tools. Method for accessing value of the specified element of an array node. |
| public JsonNode | path(String propertyName)
Implements abstract tools. Implements tools. Method for accessing value of the specified property of an Object node. |
| public Set | properties()
Overrides tools. Method to use for accessing all properties (with both names and values) of this JSON Object. |
| public Collection | propertyNames()
Overrides tools. Implements tools. Method for accessing names of all properties for this node, if (and only if) this node is an Object node. |
| public Stream | propertyStream()
Overrides tools. Returns a stream of all properties (key, value pairs) of this Node,
iff this node is an an |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | Returns: This node (to allow chaining)Method for setting value of a property to specified numeric value. |
| public ObjectNode | Returns: This node (to allow chaining)Method for setting value of a property to specified numeric value. |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ArrayNode | |
| public JsonNode | Returns: Old value of the property, if any (in which case value was not changed); null if there was no old value (in which case value is now set)Name of property to set (must not be propertyName, JsonNode null)Value to set to property (if and only if it had no value previously);
if null, will be converted to a value)NullNode first.Method that will set value of specified property if (and only if) it had no set value previously. |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | |
| public JsonNode | |
| public ObjectNode | Returns: This node after removing entriesNames of properties to remove propertyNames)Method for removing specified properties out of this ObjectNode. |
| public ObjectNode | Returns: This node after removing all entriesImplements abstract tools. Method for removing all properties, such that this ObjectNode will contain no properties after call. |
| public ObjectNode | removeIf(Predicate<? super JsonNode> predicate)
Implements abstract tools. Method for removing matching those children (value) nodes container has that match given predicate. |
| public JsonNode | Returns: Old value of the property; null if there was no such property with valueProperty of which value to replace: must not be propertyName, JsonNode nullValue to set property to, replacing old value if any value)Method for replacing value of specific property with passed value, and returning previous value (or null if none). |
| public JsonNode | required(String propertyName)
Overrides tools. Method is functionally equivalent to
|
| public ObjectNode | Returns: This node (to allow call chaining)Properties to retain in this ObjectNode propertyNames)Method for removing all properties out of this ObjectNode except for ones specified in argument. |
| public ObjectNode | |
| public void | serialize(JsonGenerator g, SerializationContext ctxt)
Implements abstract tools. Implements tools. Method that can be called to serialize this node and all of its descendants using specified JSON generator. |
| protected void | serializeFilteredContents(final JsonGenerator g, final SerializationContext ctxt, final boolean trimEmptyArray, final boolean skipNulls)
Helper method shared and called by |
| public void | serializeWithType(JsonGenerator g, SerializationContext ctxt, TypeSerializer typeSer)
Implements abstract tools. Implements tools. Type information is needed, even if JsonNode instances are "plain" JSON, since they may be mixed with other types. |
| public ObjectNode | |
| public ObjectNode | |
| public ObjectNode | Returns: This node after addition (to allow chaining)Object of which properties to add to this object other)Method for adding all properties of the given Object, overriding any existing values for those properties. |
| public int | size()
Implements abstract tools. Implements tools. Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of properties, and for all other nodes 0. |
| public Collection | values()
Overrides tools. Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node. |
| public Stream | valueStream()
Implements abstract tools. Returns a stream of all value nodes of this Node, iff
this node is an |
| public ArrayNode | withArray(String exprOrProperty)
Overrides tools. Short-cut equivalent to: withArray(JsonPointer.compile(expr), overwriteMode, preferIndex); |
| public ArrayNode | withArrayProperty(String propName)
Overrides tools. Method similar to
withArray(JsonPointer.compile("/"+propName), OverwriteMode.NULLS, false);
|
| public ObjectNode | withObject(String exprOrProperty)
Overrides tools. Method that works in one of possible ways, depending on whether
|
| public ObjectNode | withObjectProperty(String propName)
Overrides tools. Method similar to
withObject(JsonPointer.compile("/"+propName), OverwriteMode.NULLS, false);
|
| public ObjectNode | |
| public ObjectNode | Returns: This node after removing entriesNames of properties to remove propertyNames)Method for removing specified properties out of this ObjectNode. |