You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,31 @@
1
1
1.0.0 (on master)
2
2
-------
3
3
4
-
Changes to basic_json::operator[]:
4
+
- API Changes
5
5
6
-
- Removed `basic_json` proxy type. The rationale for this change is given in #315.
7
-
8
-
- The new behavior for the non-const overload of operator[](const string_view_type&) will follow the standard library
9
-
`std::map` behavior, that is, return a reference to the value that is associated with the key, inserting a default
6
+
- Non-const `basic_json::operator[]` no longer returns a proxy type. The rationale for this change is given in #315.
7
+
The new behavior for the non-const overload of `operator[](const string_view_type& key)` is consistent with the standard library
8
+
`std::map` behavior, that is, return a reference to the value that is associated with `key`, inserting a default
10
9
constructed value with the key if no such key already exists.
11
-
12
-
- The new behavior for the const overload of operator[](const string_view_type&) will be to return
13
-
a const reference to the value that is associated with key, returning a const reference to a default
10
+
The new behavior for the const overload of `operator[](const string_view_type& key)` is to return
11
+
a const reference to the value that is associated with `key`, returning a const reference to a default
14
12
constructed value with static storage duration if no such key already exists.
15
13
16
-
Changes to basic_json_parser:
17
-
18
-
Until 1.0.0, a buffer of text is supplied to the parser with a call to `update()`
14
+
- Until 1.0.0, a buffer of text is supplied to `basic_json_parser` with a call to `update()`
19
15
followed by a call to `parse_some()`. Once the parser reaches the end of the buffer,
20
16
additional JSON text can be supplied to the parser with another call to `update()`,
21
17
followed by another call to `parse_some()`. See [Incremental parsing (until 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-until-01790).
22
-
23
18
Since 0.179, an initial buffer of text is supplied to the parse with a call to
24
19
`set_buffer`, and parsing commences with a call to `parse_some`. The parser can be
25
20
constructed with a user provided chunk reader to obtain additional JSON text
26
21
as needed. See [Incremental parsing (since 1.0.0)](https://github.com/danielaparker/jsoncons/blob/master/doc/ref/corelib/basic_json_parser.md#incremental-parsing-since-01790).
27
22
23
+
- enum `bigint_chars_format` is replaced by `bignum_format_kind`, and for backwards compatability, `bigint_chars_format`
24
+
is aliased to `bignum_format_kind`. Added `bignum_format` getter and setter functions to `basic_json_options`,
25
+
and deprecated `bigint_format` getter and setter functions. Changed default `bignum_format` to `bignum_format_kind::raw`.
26
+
Rationale: `bigint_chars_format` was misnamed, as it applied to big decimal as well as big integer numbers, and
27
+
a default of `bignum_format_kind::raw` makes more sense than a string in base10 format.
0 commit comments