public abstract class JsonValue
extends java.lang.Object
Represents a JSON value (either a JsonObject or a JsonArray.
| Modifier and Type | Field and Description |
|---|---|
static JsonNull |
NULL
Represents a Json “null”.
|
| Constructor and Description |
|---|
JsonValue() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
checkType(java.lang.Object item)
Helper method to check if the given item is a supported JSON item.
|
static JsonArray |
ja()
Static factory method to create an empty
JsonArray. |
static JsonObject |
jo()
Static factory method to create an empty
JsonObject. |
public static JsonNull NULL
Represents a Json “null”.
public static JsonObject jo()
Static factory method to create an empty JsonObject.
JsonObject.public static JsonArray ja()
Static factory method to create an empty JsonArray.
JsonArray.protected static boolean checkType(java.lang.Object item)
Helper method to check if the given item is a supported JSON item.
item - the value to check.