Package javax.json
Interface JsonValue
-
- All Known Subinterfaces:
JsonArray
,JsonNumber
,JsonObject
,JsonString
,JsonStructure
public interface JsonValue
A single value in a JSON expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
JsonValue.ValueType
-
Field Summary
Fields Modifier and Type Field Description static JsonArray
EMPTY_JSON_ARRAY
The empty JSON array.static JsonObject
EMPTY_JSON_OBJECT
The empty JSON object.static JsonValue
FALSE
A constant JsonValue for FALSEstatic JsonValue
NULL
A constant JsonValue for null valuesstatic JsonValue
TRUE
A constant JsonValue for TRUE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JsonArray
asJsonArray()
default JsonObject
asJsonObject()
JsonValue.ValueType
getValueType()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
asJsonObject
default JsonObject asJsonObject()
-
asJsonArray
default JsonArray asJsonArray()
-
-