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 calling parseString. The JsonValue toString returns the JSON String representation of the object.
Functions
Gets the contained value coerced into a String.
Gets the contained values as a boolean.
Requires the value to be a JsonList or a JsonException will be thrown.
Requires the value to be a JsonMap or a JsonException will be thrown.
Requires the value to be a String or a JsonException will be thrown.
Returns the objects represented as a JsonValue.
Helper method that is used to write the value as a JSON String.