Package org.bson.json
Enum Class JsonMode
- All Implemented Interfaces:
- Serializable,- Comparable<JsonMode>,- java.lang.constant.Constable
An enumeration of the supported output modes of 
JSONWriter.- Since:
- 3.0
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionStandard extended JSON representation.Standard relaxed extended JSON representation.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.Deprecated.The format generated with this mode is no longer considered standard for MongoDB tools.
- 
Method Summary
- 
Enum Constant Details- 
STRICTDeprecated.The format generated with this mode is no longer considered standard for MongoDB tools. This value is not currently scheduled for removal.Strict mode representations of BSON types conform to the JSON RFC spec.
- 
SHELLWhile not formally documented, this output mode will attempt to produce output that corresponds to what the MongoDB shell actually produces when showing query results.
- 
EXTENDEDStandard extended JSON representation.- Since:
- 3.5
- See Also:
 
- 
RELAXEDStandard relaxed extended JSON representation.- Since:
- 3.5
- See Also:
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-