c2e80a72d7
🔨 deprecated j << istream / j >> ostream functions #367
...
The implementation is non-standard. Deprecation allows a simpler API in
the future without removing any features.
2017-03-29 00:39:47 +02:00
b4dbebffcd
✅ added regression test for #464
2017-03-28 23:28:54 +02:00
c5711f3072
🚧 a lot of minor changes
...
- Removed unused headers.
- Added override where needed.
- Added description for parse_error.113 exception.
- Fixed some conversion warnings.
- Integrated cbor_expect_string function for CBOR maps.
- Added documentation on the supported CBOR/MessagePack features.
- Added test to check all initial bytes for CBOR input.
2017-03-16 18:39:33 +01:00
1de80e8af4
🔨 added user-defined exception #493
...
Replaced old std::invalid_argument exception by parse_error.111 to have
unified exceptions in case of input stream errors.
2017-03-14 21:31:36 +01:00
63c2c62f19
🔨 changed call from "not good()" to "fail()" #493
...
Also merged develop into this feature branch.
2017-03-14 21:24:53 +01:00
b026591e9e
🚑 added special case to fuzzers to fix #504
...
Since #329 , NaN and inf numbers do not yield an exception, but are
stored internally and are dumped as “null”. This commit adjusts the
fuzz testers to deal with this special case.
2017-03-14 21:05:38 +01:00
bfe4788e32
🚑 fix for #500
...
Removed a check that already failed in MSVC.
2017-03-14 16:14:05 +01:00
84072fbd6d
💄 fixed indentation
2017-03-14 16:07:28 +01:00
c5cf32e34d
🔨 added user-defined exception 406
2017-03-12 20:59:33 +01:00
855cdcf05c
🔀 merge branch 'develop' into feature/exceptions_3.0.0
2017-03-12 20:22:30 +01:00
8feaf8dc94
💥 implemented new handling of NaN and INF #70 #329 #388
...
- If an overflow occurs during parsing a number from a JSON text, an
exception (std::out_of_range for the moment, to be replaced by a
user-defined exception #244 ) is thrown so that the overflow is detected
early and roundtripping is guaranteed.
- NaN and INF floating-point values can be stored in a JSON value and
are not replaced by null. That is, the basic_json class behaves like
double in this regard (no exception occurs). However, NaN and INF are
serialized to “null”.
- Adjusted test cases appropriately.
2017-03-12 18:38:05 +01:00
87eafd8d6a
✅ added regression tests for #473
...
These tests currently pass without any adjustments to the source code.
2017-03-12 15:20:17 +01:00
89f6068385
Merge branch 'develop' into feature/exceptions_3.0.0
2017-03-12 11:51:24 +01:00
4d7c29923e
🚑 fix for #486
...
Implemented std::less<value_t> to allow using value_t as std::map key
in MSVC.
2017-03-12 10:40:36 +01:00
4e49829851
🚑 fix for #493
...
Added a test to check if the input stream is good() before executing
getline on it. Also added two test cases that set the failbit and
badbit before calling file_line_buffer.
2017-03-11 19:26:12 +01:00
f4126e4dd8
✨ added overload for std::less<value_t> #486
...
MSVC needs this overload to compile code containing a std::map that
uses nlohmann::detail::operator as key.
2017-03-11 15:44:14 +01:00
f5f6dac800
✨ added overload for std::vector<bool> #494
...
Adds a to_json function for std::vector<bool> to allow implicit
conversion from bit vectors to basic_json.
2017-03-11 15:32:44 +01:00
fc9b528ec9
🔨 changed an exception
2017-03-08 18:07:21 +01:00
5407333224
🔨 added user-defined exception 111
2017-03-06 22:37:46 +01:00
c085e3bac2
🔨 started with user-defined exceptions #301 #244
...
Added class hierarchy for user-defined exceptions (#244 ). Integrated
parse exceptions 101-103. Parse exceptions include the byte count of
the last read character to locate the position of the error (#301 ).
2017-03-01 21:28:44 +01:00
d1b30250d6
✅ added missing tests
2017-02-26 11:50:52 +01:00
27c65b860b
🔖 version 2.1.1
2017-02-25 16:34:38 +01:00
8cec55a271
🚧 fixed more warnings
2017-02-22 18:14:29 +01:00
7d14f167b8
🚑 fix for #465
2017-02-20 22:48:27 +01:00
83f1d2c81b
✨ added start index for from_cbor and from_msgpack ( #462 )
2017-02-19 21:17:05 +01:00
4151f2d297
✅ added test with thousands_sep
2017-02-19 20:08:01 +01:00
6408402ad2
🔀 merge #378 (for #362 and #454 )
2017-02-16 09:24:45 +01:00
057b1e606b
🔀 merged #415 (fix for #414 )
2017-02-16 08:50:20 +01:00
b9f3149451
🚑 fix for #452
2017-02-15 21:30:28 +01:00
6bf93b3d06
Merge remote-tracking branch 'upstream/develop' into develop
2017-02-15 15:00:25 +02:00
c8191c8172
🔨 further cleanup
2017-02-12 18:50:17 +01:00
8d88a1da2a
🔀 merged #379 and fixed conflicts
2017-02-05 13:13:41 +01:00
d870826811
🔖 set version to 2.1.0
2017-01-28 16:03:35 +01:00
6198439f59
fix #414 - comparing to 0 literal
...
Overload comparison operators for all types that could be converted
to nullptr.
2017-01-24 22:33:37 +02:00
3e15b551e0
run make pretty
2017-01-21 16:14:22 +01:00
6d427acdde
replace constructor by from/to_json: unscoped enum types
...
this also means that one can do: j.get<unscoped_enum>();
2017-01-21 16:14:22 +01:00
c236b596c9
Merge upstream/develop into feature/locale_independent_str_to_num
2017-01-04 19:20:16 -05:00
949061079a
Merge upstream/develop into feature/locale_independent_num_to_str
2017-01-04 18:55:19 -05:00
cdd3b5a68c
🚑 fix for #416
2017-01-03 23:52:01 +01:00
8b46eb8ec0
📄 it's 2017 already
2017-01-02 09:40:00 +01:00
60b3703c62
🔖 version bump to 2.0.10
2017-01-02 09:35:57 +01:00
cf9bf2d913
🚑 fix for #411 and #412
2017-01-01 15:28:01 +01:00
f0edab2363
🚑 fix for #408
2016-12-29 17:00:02 +01:00
383a29a924
🚑 fix for #407
2016-12-29 16:14:15 +01:00
871cebaf84
🚑 fix for #405
2016-12-29 15:39:16 +01:00
303e873ae8
🔖 bumped version to 2.0.9
2016-12-16 20:45:46 +01:00
2f94c30bad
✅ added a regression test for #380 / #390
2016-12-13 21:46:07 +01:00
6fba52b6da
Merged upstream/develop into feature/locale_independent_str_to_num
2016-12-12 20:27:15 -05:00
65b9b0c429
Disabling snprintf pre-check, since can't get locale-specific behavior to manifest in AppVeyor
2016-12-12 19:50:21 -05:00
0f8de48ddb
Disabling strtod pre-check, since can't get locale-specific behavior to manifest in AppVeyor
2016-12-12 19:48:14 -05:00