public abstract class JsonValue extends 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 |
---|---|
static boolean |
checkType(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
.public static boolean checkType(Object item)
Helper method to check if the given item is a supported JSON item.
item
- the value to check.Copyright © 2015 Couchbase, Inc.