com.mongodb.util
Class JSONSerializers
java.lang.Object
com.mongodb.util.JSONSerializers
public class JSONSerializers
- extends Object
Defines static methods for getting ObjectSerializer
instances that produce various flavors of
JSON.
Method Summary |
static ObjectSerializer |
getLegacy()
Returns an ObjectSerializer that mostly conforms to the strict JSON format defined in
|
static ObjectSerializer |
getStrict()
Returns an ObjectSerializer that conforms to the strict JSON format defined in
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getLegacy
public static ObjectSerializer getLegacy()
- Returns an
ObjectSerializer
that mostly conforms to the strict JSON format defined in
getStrict in preference to this method.
- Returns:
- object serializer
- See Also:
getStrict()
getStrict
public static ObjectSerializer getStrict()
- Returns an
ObjectSerializer
that conforms to the strict JSON format defined in
- Returns:
- object serializer