[JAVA-2556] Change toJson method contract to default to extJSON relaxed mode Created: 14/Jul/17  Updated: 29/Oct/23  Resolved: 20/Sep/19

Status: Closed
Project: Java Driver
Component/s: JSON
Affects Version/s: None
Fix Version/s: 4.0.0

Type: New Feature Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: John Stewart (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to JAVA-2447 Implement Extended JSON specification Closed
is related to JAVA-4198 BasicDBObject.toString() returns STRI... Closed
Backwards Compatibility: Major Change

 Description   

The toJson() methods on BasicDBObject, Document, and BsonDocument default to JsonMode.STRICT, but based on the Extended JSON spec they should default to JsonMode.RELAXED.

As this a a major backwards breaking change, it is being deferred to a major release rather than being included in 3.5.0 along with the rest of the implementation of that specification.



 Comments   
Comment by Githook User [ 15/Jan/20 ]

Author:

{'name': 'John Stewart', 'username': 'jstewart-mongo', 'email': 'john.stewart@mongodb.com'}

Message: Change toJson method contract to default to extJSON relaxed mode

JAVA-2556
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c01414ad43af0095ca0e773dd68584c8407b94de

Comment by Jeffrey Yemin [ 16/Aug/17 ]

Blocked on major release

Generated at Thu Feb 08 08:57:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.