Skip to content

Commit 92aa4fe

Browse files
authored
NEWS updates for minor JSON serialization changes (#1832)
This is a follow-up to #1816 and mongodb/mongo-cxx-driver#1322, documenting minor changes to JSON output subsequent to change f2c1bb7
1 parent ee16861 commit 92aa4fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libbson/NEWS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ libbson 1.30.0 (Unreleased)
44
Fixes:
55

66
* Truncated output of `bson_as_json_with_opts` is changed to no longer split valid UTF-8 sequences.
7-
7+
* Changes were made to the generated JSON text in some cases:
8+
* 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.
9+
* Previously, an array omitted due to the maximum recursion limit would serialize to "{ ... }", as if it were a document. Omitted arrays now serialize to "[ ... ]".
10+
* The maximum recursion limit now applies to legacy codewscope documents. Deeply nested scope documents will now be omitted like any other deeply nested document.
811

912

1013
libbson 1.29.2

0 commit comments

Comments
 (0)