public interface JsonValue
JsonValue represents an immutable JSON value.
 A JSON value is one of the following:
 an object (JsonObject), an array (JsonArray),
 a number (JsonNumber), a string (JsonString),
 true (JsonValue.TRUE), false
 (JsonValue.FALSE),
 or null (JsonValue.NULL).
| Modifier and Type | Interface and Description | 
|---|---|
| static class  | JsonValue.ValueTypeIndicates the type of a  JsonValueobject. | 
| Modifier and Type | Field and Description | 
|---|---|
| static JsonArray | EMPTY_JSON_ARRAYThe empty JSON array. | 
| static JsonObject | EMPTY_JSON_OBJECTThe empty JSON object. | 
| static JsonValue | FALSEJSON false value. | 
| static JsonValue | NULLJSON null value. | 
| static JsonValue | TRUEJSON true value. | 
| Modifier and Type | Method and Description | 
|---|---|
| default JsonArray | asJsonArray()Return the JsonValue as a JsonArray | 
| default JsonObject | asJsonObject()Return the JsonValue as a JsonObject | 
| JsonValue.ValueType | getValueType()Returns the value type of this JSON value. | 
| String | toString()Returns JSON text for this JSON value. | 
static final JsonObject EMPTY_JSON_OBJECT
static final JsonArray EMPTY_JSON_ARRAY
static final JsonValue NULL
static final JsonValue TRUE
static final JsonValue FALSE
JsonValue.ValueType getValueType()
default JsonObject asJsonObject()
ClassCastException - if the JsonValue is not a JsonObjectdefault JsonArray asJsonArray()
ClassCastException - if the JsonValue is not a JsonArrayCopyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.