Append an object to the underlying list.
Retrieve the object at the index'th position in the underlying list.
JSONValue.get(int index,
Object defaultValue)
Retrieve the object at the index'th position in the underlying list, or
the given default value if there is no such index.
Retrieve the object at the given key in the underlying map.
Retrieve the object at the given key in the underlying map, or
the given default value if there is no such key.
Retrieve the object at the index'th position in the underlying list, throwing
JSONMissingIndexError if there is no such index.
Retrieve the object at the given key in the underlying map, throwing
JSONMissingKeyError if there is no such key.
Construct a new
List
, suitable for use as a JSON value.
Construct a new
Map
, suitable for use as a JSON value.
Replace the object at the given key in the underlying map.
As read(), but wraps the result in
JSONValue
.
Reads and returns a single JSONValue from the given Reader.
Reads and returns a single JSONValue from the given input JSON source text.
Reads and returns a single JSONValue from the given input JSON source text.
Remove the object at the given key in the underlying map.
Replace the object at the index'th position in the underlying list.
Returns a JSONValue wrapping the given object, unless the argument is null or already a JSONValue, in which case it is returned directly.