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
+47-1Lines changed: 47 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
1.4.0 preview
2
2
-----
3
3
4
-
- Enhancements
4
+
- Fixed bug:
5
+
6
+
- Git Issue #620: Issue with JSONPath filter expression fixed through PR #621
7
+
8
+
- Enhancements:
5
9
6
10
- Use `std::from_chars` for chars to double conversion when supported in GCC and VC.
7
11
This reverts the removal of this feature in 0.170.0, because of issue [std::from_chars parsing fails tests on Windows](https://github.com/danielaparker/jsoncons/issues/405).
@@ -10,6 +14,48 @@
10
14
- New `basic_json_options` member `lossless_bignum`. If `true`, reads out of range floating point numbers
11
15
as strings with tag `semantic_tag::bigdec`. Defaults to true.
12
16
17
+
- New non-throwing versions of the decode functions that return a `std::expected`-like result,
18
+
19
+
-`try_decode_json`
20
+
-`try_decode_csv`
21
+
-`try_decode_bson`
22
+
-`try_decode_cbor`
23
+
-`try_decode_msgpack`
24
+
-`try_decode_ubjson`
25
+
26
+
- New non-throwing accessor `try_as<T>()` for `basic_json` that return a `std::expected`-like result,
27
+
28
+
- Changes
29
+
30
+
- Until now, the reflection traits generated by the convenience macros `JSONCONS_ALL_MEMBER_TRAITS`
31
+
etc. produced JSON (or other formats) with object names in sorted order. After this release,
32
+
they will produce JSON, BSON etc. with object names in the order that they appear as macro arguments.
33
+
34
+
- Breaking change to staj iterator classes
35
+
36
+
- Classes `staj_array_view` and `staj_object_view` and corresponding factories `staj_array`
37
+
and `staj_object` have been removed.
38
+
-`staj_array_iterator` and `staj_object_iterator` objects are now constructed directly
39
+
from a cursor rather than through one of these view objects.
40
+
- Classes `staj_array_iterator` and `staj_object_iterator` now have `begin` and `end`
41
+
non-member functions for range-based for loop support.
42
+
43
+
We don't expect this change will affect many users. In any case the change is simple, e.g.
44
+
45
+
auto view = staj_object<std::string,json>(cursor);
46
+
for (const auto& key_val : view)
47
+
{
48
+
// ...
49
+
}
50
+
51
+
becomes
52
+
53
+
auto iter = staj_object_iterator<std::string,json>(cursor);
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ to work with the data in a number of ways:
6
6
7
7
- As a variant-like, allocator-aware, data structure, [basic_json](doc/ref/corelib/basic_json.md)
8
8
9
-
- As a strongly typed C++ data structure that implements [json_type_traits](doc/ref/corelib/json_type_traits.md)
9
+
- As a strongly typed C++ data structure that implements jsoncons reflection traits
10
10
11
11
- With cursor-level access to a stream of parse events, somewhat analogous to StAX pull parsing and push serializing
12
12
in the XML world.
@@ -71,7 +71,7 @@ _"really good"_ _"awesome project"_ _"very solid and very dependable"_ _"my team
71
71
72
72
[Get started with HealthImaging image sets and image frames using an AWS SDK](https://docs.aws.amazon.com/healthimaging/latest/devguide/example_medical-imaging_Scenario_ImageSetsAndFrames_section.html)
0 commit comments