public enum JsonMode extends Enum<JsonMode>
JSONWriter
.JsonWriter
Enum Constant and Description |
---|
EXTENDED
Standard extended JSON representation.
|
RELAXED
Standard relaxed extended JSON representation.
|
SHELL
While not formally documented, this output mode will attempt to produce output that corresponds to what the MongoDB shell actually
produces when showing query results.
|
STRICT
Deprecated.
The format generated with this mode is no longer considered standard for MongoDB tools.
|
Modifier and Type | Method and Description |
---|---|
static JsonMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final JsonMode STRICT
public static final JsonMode SHELL
public static final JsonMode EXTENDED
public static final JsonMode RELAXED
public static JsonMode[] values()
for (JsonMode c : JsonMode.values()) System.out.println(c);
public static JsonMode 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