public static enum JSON.Mode extends Enum<JSON.Mode>
| Enum Constant and Description |
|---|
SCRIPT
Script(=JavaScript) Mode
|
STRICT
Strict Mode
|
TRADITIONAL
Traditional Mode
|
| Modifier and Type | Method and Description |
|---|---|
static JSON.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSON.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSON.Mode TRADITIONAL
public static final JSON.Mode STRICT
public static final JSON.Mode SCRIPT
public static JSON.Mode[] values()
for (JSON.Mode c : JSON.Mode.values()) System.out.println(c);
public static JSON.Mode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null