Modifier and Type | Method and Description |
---|---|
JsonValue |
get(String key)
Get the
JsonValue under the provided key. |
JsonObject |
put(String key,
JsonValue element)
Add (if there is no value with the same key already) or replace (if there is) a new
JsonValue to the object under
the provided key. |
JsonValue |
remove(String key)
Remove the
JsonValue under the provided key. |
int |
size() |
asBoolean, asByteBuffer, asJsonArray, asJsonObject, asNumber, asString, isBoolean, isJsonArray, isJsonObject, isNull, isNumber, isString, toObject, toString
JsonObject put(String key, JsonValue element)
JsonValue
to the object under
the provided key. Supports chaining of calls.key
- the key of the JsonValue
to add or replaceelement
- the value to add or replaceJsonObject
to allow call chainingJsonValue get(String key)
JsonValue
under the provided key.key
- the key to get the value forJsonValue
under the provided key or null
if no value is foundJsonValue remove(String key)
JsonValue
under the provided key.key
- the key to remove the value forJsonValue
or null
if no value is foundint size()
JsonObject
Copyright © 2025 lettuce.io. All rights reserved.