public enum JsonMode extends java.lang.Enum<JsonMode>
JSONWriter.JsonWriter| 枚举常量和说明 |
|---|
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.
|
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(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值