Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2556

Change toJson method contract to default to extJSON relaxed mode

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.0
    • Affects Version/s: None
    • Component/s: JSON
    • None
    • Major Change

      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.

            Assignee:
            john.stewart@mongodb.com John Stewart (Inactive)
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: