Details
-
Task
-
Resolution: Works as Designed
-
Unknown
-
None
-
3.7.0, 3.12.0
-
(copied to CRM)
Description
Older versions (pre-3.7) of the driver when calling BasicDBObject.toString() returns simple JSON output, i.e
{
|
"name" : "foo",
|
"age" : 10}
|
New versions (3.7 to 3.12), when calling the BasicDBObject.toString() method returns STRICT extended json: i.e
{
|
"name" : "foo",
|
"age" : {"$numberLong": 10"}
|
}
|
Would it is possible to override the default behavior by some flag instead of using the BasicDBObject.toJson(JsonWriterSettings). Some applications rely on the prior behavior to feed other libraries that doesn't expect extended json.
Attachments
Issue Links
- related to
-
JAVA-2556 Change toJson method contract to default to extJSON relaxed mode
-
- Closed
-