-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
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.
- depends on
-
CDRIVER-2223 JSON reader cannot parse integers for legacy $date syntax
- Closed
-
CDRIVER-2208 Introduce new API for Extended JSON spec 2.0 output
- Closed
- is depended on by
-
PHPC-926 Implement Extended JSON spec
- Closed
- is related to
-
CDRIVER-1947 Improve libbson compatibility with the BSON Corpus tests
- Development Complete
-
CDRIVER-2077 Undeprecate bson_as_json
- Closed
-
PHPC-828 Use canonical extended JSON for Timestamp::jsonSerialize()
- Closed
- related to
-
PHPC-954 Revert toExtendedJSON() function
- Closed
-
PHPC-992 Rename to[Canonical|Relaxed]JSON() to to[Canonical|Relaxed]ExtendedJSON()
- Closed