public static enum JsonSerializer.Mode extends Enum<JsonSerializer.Mode>
JsonSerializer.toJson(Map, Mode)| Enum Constant and Description |
|---|
FORMATTED
Will be generated json-string in pretty read format, where non-digital and non-letter character in string will be stay in readable format, if it possible.
|
HARD
Will be generated compact json-string, where any non-digital and non-letter character in string will be replaced with sequence uXXXX.
|
JSON5
Will be generated json-string in max human readable format json5.
|
JSON5COMPACT
JSON5 like, but without linefeed
|
LIGHT
Will be generated compact json-string, where non-digital and non-letter character in string will be stay in readable format, if it possible.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonSerializer.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonSerializer.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonSerializer.Mode HARD
public static final JsonSerializer.Mode LIGHT
public static final JsonSerializer.Mode FORMATTED
public static final JsonSerializer.Mode JSON5
public static final JsonSerializer.Mode JSON5COMPACT
public static JsonSerializer.Mode[] values()
for (JsonSerializer.Mode c : JsonSerializer.Mode.values()) System.out.println(c);
public static JsonSerializer.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 nullCopyright © 2018. All rights reserved.