public static enum Json.ValueType extends java.lang.Enum<Json.ValueType>
Values appear as values of key-value pairs in JSON objects, and as elements in JSON arrays.
The uppermost item in a JSON file is always a value, mostly an Object.
| Enum Constant and Description |
|---|
Array
A JSON array, i.e. a container with a bunch of value elements.
|
Boolean
A JSON boolean value, either
true or false. |
Null
A JSON
null value. |
Number
A JSON number.
|
Object
A JSON object, i.e. a container with key-value pairs.
|
String
A JSON string, i.e. a piece of text.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName()
Get the display name of this enum.
|
static Json.ValueType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Json.ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Json.ValueType Object
public static final Json.ValueType Array
public static final Json.ValueType String
public static final Json.ValueType Number
double in the java sense. This creates a bunch of problems, e.g. it's
impossible to represent all long integers.public static final Json.ValueType Boolean
true or false.public static final Json.ValueType Null
null value.public static Json.ValueType[] values()
for (Json.ValueType c : Json.ValueType.values()) System.out.println(c);
public static Json.ValueType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@NotNull public java.lang.String getDisplayName()