| Modifier and Type | Method and Description |
|---|---|
Stream<String> |
fieldNames() |
Stream<Map.Entry<String,JsonNode>> |
fields() |
JsonNode |
get(String name)
Gets the
JsonNode field with the specified name in the object. |
boolean |
has(String name)
Returns whether the object has a value for the specified field.
|
default boolean |
isObject() |
JsonObject |
put(String name,
JsonNode jsonNode)
Puts a
JsonNode field with the specified name into the object. |
JsonNode |
remove(String name)
Removes the
JsonNode with the specified name from the object. |
JsonNode |
set(String name,
JsonNode jsonNode)
Sets the
JsonNode field with the specified name with a new node value. |
default boolean isObject()
isObject in interface JsonNodeJsonNode is an instance of JsonObject.JsonNode get(String name)
JsonNode field with the specified name in the object.name - Name of the node.JsonNode for the specified field in the object if it exist, null otherwise.boolean has(String name)
name - Name of the node.JsonObject put(String name, JsonNode jsonNode)
JsonNode field with the specified name into the object.name - Name of the node.jsonNode - The JsonNode to put into the object.JsonObject object.JsonNode remove(String name)
JsonNode with the specified name from the object.name - Name of the node.JsonNode removed from the object if it existed, null otherwise.Copyright © 2021 Microsoft Corporation. All rights reserved.