Package com.mongodb.util
Class JSONSerializers
-
- com.mongodb.util.JSONSerializers
-
public class JSONSerializers extends
Deprecated.This class has been superseded by to toJson and parse methods on BasicDBObjectDefines static methods for gettingObjectSerializer
instances that produce various flavors of JSON.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjectSerializer
getLegacy()
Deprecated.Returns anObjectSerializer
that mostly conforms to the strict JSON format defined in , but with a few differences to keep compatibility with previous versions of the driver.static ObjectSerializer
getStrict()
Deprecated.Returns anObjectSerializer
that conforms to the strict JSON format defined in .
-
-
-
Method Detail
-
getLegacy
public static ObjectSerializer getLegacy()
Deprecated.Returns anObjectSerializer
that mostly conforms to the strict JSON format defined in , 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()
- MongoDB documentation
-
getStrict
public static ObjectSerializer getStrict()
Deprecated.Returns anObjectSerializer
that conforms to the strict JSON format defined in .- Returns:
- object serializer
- MongoDB documentation
-
-