Package com.mongodb.util
Class JSONSerializers
java.lang.Object
com.mongodb.util.JSONSerializers
Deprecated.
This class has been superseded by to toJson and parse methods on BasicDBObject
Defines static methods for getting
ObjectSerializer
instances that produce various flavors of JSON.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectSerializer
Deprecated.Returns anObjectSerializer
that mostly conforms to the strict JSON format defined in extended JSON, but with a few differences to keep compatibility with previous versions of the driver.static ObjectSerializer
Deprecated.Returns anObjectSerializer
that conforms to the strict JSON format defined in extended JSON.
-
Method Details
-
getLegacy
Deprecated.Returns anObjectSerializer
that mostly conforms to the strict JSON format defined in extended JSON, but with a few differences to keep compatibility with previous versions of the driver. Clients should generally prefergetStrict
in preference to this method.- Returns:
- object serializer
- See Also:
-
getStrict
Deprecated.Returns anObjectSerializer
that conforms to the strict JSON format defined in extended JSON.- Returns:
- object serializer
-