Skip to content

NEWS updates for minor JSON serialization changes #1832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/libbson/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ libbson 1.30.0 (Unreleased)
Fixes:

* Truncated output of `bson_as_json_with_opts` is changed to no longer split valid UTF-8 sequences.

* Changes were made to the generated JSON text in some cases:
* Previously, empty arrays and documents would serialize with either one or two spaces depending on whether it is nested. Empty arrays and documents now consistently serialize with just one space.
* Previously, an array omitted due to the maximum recursion limit would serialize to "{ ... }", as if it were a document. Omitted arrays now serialize to "[ ... ]".
* The maximum recursion limit now applies to legacy codewscope documents. Deeply nested scope documents will now be omitted like any other deeply nested document.


libbson 1.29.2
Expand Down