public enum JsonMode extends java.lang.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(java.lang.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(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 nullCopyright © 2010 - 2020 Adobe. All Rights Reserved