Package javax.json
Interface JsonValue
-
- All Known Subinterfaces:
JsonArray,JsonNumber,JsonObject,JsonString,JsonStructure
public interface JsonValueA single value in a JSON expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJsonValue.ValueType
-
Field Summary
Fields Modifier and Type Field Description static JsonArrayEMPTY_JSON_ARRAYThe empty JSON array.static JsonObjectEMPTY_JSON_OBJECTThe empty JSON object.static JsonValueFALSEA constant JsonValue for FALSEstatic JsonValueNULLA constant JsonValue for null valuesstatic JsonValueTRUEA constant JsonValue for TRUE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JsonArrayasJsonArray()default JsonObjectasJsonObject()JsonValue.ValueTypegetValueType()java.lang.StringtoString()
-
-
-
Field Detail
-
EMPTY_JSON_OBJECT
static final JsonObject EMPTY_JSON_OBJECT
The empty JSON object.
-
EMPTY_JSON_ARRAY
static final JsonArray EMPTY_JSON_ARRAY
The empty JSON array.
-
NULL
static final JsonValue NULL
A constant JsonValue for null values
-
TRUE
static final JsonValue TRUE
A constant JsonValue for TRUE
-
FALSE
static final JsonValue FALSE
A constant JsonValue for FALSE
-
-
Method Detail
-
getValueType
JsonValue.ValueType getValueType()
-
toString
java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
asJsonObject
default JsonObject asJsonObject()
-
asJsonArray
default JsonArray asJsonArray()
-
-