Package javax.json
Interface JsonValue
- All Known Subinterfaces:
JsonArray,JsonNumber,JsonObject,JsonString,JsonStructure
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).
-
Field Details
-
NULL
JSON null value. -
TRUE
JSON true value. -
FALSE
JSON false value
-
-
Method Details
-
getValueType
JsonValue.ValueType getValueType()Returns the value type of this JSON value.- Returns:
- JSON value type
-
toString
String toString()Returns JSON text for this JSON value.
-