public static enum JsonWriter.OutputType extends Enum<JsonWriter.OutputType>
| Enum Constant and Description |
|---|
javascript
Like JSON, but names are only double quoted if necessary.
|
json
Normal JSON, with all its double quotes.
|
minimal
Like JSON, but:
Names only require double quotes if they start with
space or any of ":,}/ or they contain
// or /* or :. |
| Modifier and Type | Method and Description |
|---|---|
String |
quoteName(String value) |
String |
quoteValue(Object value) |
static JsonWriter.OutputType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonWriter.OutputType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonWriter.OutputType json
public static final JsonWriter.OutputType javascript
public static final JsonWriter.OutputType minimal
space or any of ":,}/ or they contain
// or /* or :.
space or any of ":,{[]/ or they
contain // or /* or any of }], or they are equal to true,
false , or null.
//... or /*...*/
public static JsonWriter.OutputType[] values()
for (JsonWriter.OutputType c : JsonWriter.OutputType.values()) System.out.println(c);
public static JsonWriter.OutputType 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 © 2021. All rights reserved.