public enum JsonMode extends Enum<JsonMode>
JSONWriter.JsonWriter| Enum Constant and Description |
|---|
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
Strict mode representations of BSON types conform to the JSON RFC spec.
|
| 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.
|
public static final JsonMode STRICT
public static final JsonMode SHELL
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