Skip to content

Commit 5f4e2aa

Browse files
committed
Merge branch 'json_parser_parse' of https://github.com/danielaparker/jsoncons into views-memory
2 parents 4c75049 + d30e5c6 commit 5f4e2aa

File tree

11 files changed

+266
-597
lines changed

11 files changed

+266
-597
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
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).
88
That issue has been addressed.
99

10+
- New `basic_json_options` member `lossless_bignum`. If `true`, reads out of range floating point numbers
11+
as strings with tag `semantic_tag::bigdec`. Defaults to true.
12+
1013
1.3.2
1114
-----
1215

include/jsoncons/json_error.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ namespace jsoncons {
4747
illegal_codepoint,
4848
illegal_surrogate_value,
4949
unpaired_high_surrogate,
50-
illegal_unicode_character
50+
illegal_unicode_character,
51+
unexpected_character
5152
};
5253

5354
class json_error_category_impl
@@ -122,6 +123,8 @@ namespace jsoncons {
122123
return "Expected low surrogate following the high surrogate";
123124
case json_errc::illegal_unicode_character:
124125
return "Illegal unicode character";
126+
case json_errc::unexpected_character:
127+
return "Unexpected character";
125128
default:
126129
return "Unknown JSON parser error";
127130
}

0 commit comments

Comments
 (0)