Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-941

Introduce API for converting BSON to canonical and relaxed extended JSON

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: