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
@Deprecated public class JSONSerializers extends Object
Defines static methods for gettingObjectSerializerinstances that produce various flavors of JSON.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjectSerializergetLegacy()Deprecated.Returns anObjectSerializerthat 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 ObjectSerializergetStrict()Deprecated.Returns anObjectSerializerthat conforms to the strict JSON format defined in extended JSON.
-
-
-
Method Detail
-
getLegacy
public static ObjectSerializer getLegacy()
Deprecated.Returns anObjectSerializerthat 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 prefergetStrictin preference to this method.- Returns:
- object serializer
- See Also:
getStrict()- MongoDB documentation
- MongoDB Extended JSON
-
getStrict
public static ObjectSerializer getStrict()
Deprecated.Returns anObjectSerializerthat conforms to the strict JSON format defined in extended JSON.- Returns:
- object serializer
- MongoDB documentation
- MongoDB Extended JSON
-
-