JsonValue
A JsonValue is a representation of any value that can be described using JSON. It can contain one of the following: a JsonMap, a JsonList, a Number, a Boolean, String, or it can contain null.
JsonValues can be created from Java Objects by calling wrap or from a JSON String by callingparseString. The JsonValue toString returns the JSON String representation of the object.
Properties
Functions
Link copied to clipboard
Gets the contained value coerced into a String.
Link copied to clipboard
Link copied to clipboard
Gets the contained values as a boolean.
Link copied to clipboard
Gets the contained values as an Integer.
Link copied to clipboard
Checks if the value is a JsonList.
Link copied to clipboard
Parse a JSON encoded String.
Link copied to clipboard
Requires the value to be a JsonList or a JsonException will be thrown.
Link copied to clipboard
Requires the value to be a JsonMap or a JsonException will be thrown.
Link copied to clipboard
Requires the value to be a String or a JsonException will be thrown.
Link copied to clipboard
Returns the objects represented as a JsonValue.
Link copied to clipboard
Wraps a boolean as a JsonValue.
Wraps a char as a JsonValue.
Wraps a JsonSerializable object as a JsonValue.
Wraps a double as a JsonValue.
Wraps an int as a JsonValue.
Wraps any valid object into a JsonValue.
Wraps a String as a JsonValue.
Wraps a long as a JsonValue.
Link copied to clipboard