Introduce API for converting BSON to canonical and relaxed extended JSON

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      CDRIVER-2208 introduced bson_as_canonical_json() and bson_as_relaxed_json() functions for Extended JSON spec 2.0. We will create new toCanonicalJSON() and toRelaxedJSON() functions to proxy each libbson function, respectively. These functions will also need to be utilized in the BSON corpus tests.

      Output for bson_as_json(), which our toJSON() function uses, remains unchanged. Per this comment in PHPC-828, we also decided not to change any output for the jsonSerialize() method in our BSON classes.

              Assignee:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: