- 25 Mar, 2017 6 commits
-
-
Niels Lohmann authored
The solution with a std::runtime_error member is more elegant. It allows to have std::exception as base class again. However, I still have no idea why GCC thinks the copy constructor may throw...
-
Niels Lohmann authored
To have nothrow-copy-constructible exceptions, we inherit from std::runtime_error which can cope with arbitrary-length error messages. Intermediate strings are built with static functions and then passed to the actual constructor.
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
Add Visual Studio 17 image to appveyor build matrix
-
Vladimir Petrigo authored
-
- 24 Mar, 2017 3 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
UTF8 encoding enhancement
-
Ted Lyngmo authored
-
- 23 Mar, 2017 2 commits
-
-
Niels Lohmann authored
Fix typo
-
Berkus Decker authored
-
- 22 Mar, 2017 3 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
The result of snprintf is later used in situations where a long may overflow.
-
Niels Lohmann authored
Make exception base class visible in basic_json
-
- 20 Mar, 2017 2 commits
-
-
Krzysztof Woś authored
Instead of overwriting src/json.hpp with an empty file
-
Krzysztof Woś authored
-
- 17 Mar, 2017 3 commits
-
-
Niels Lohmann authored
Added catch branch for out_of_range exception that can occur if input file contains a number overflow.
-
Niels Lohmann authored
We should compare the binary serializations rather than the JSON values themselves. This fix was already done for CBOR and apparently forgotten for MessagePack.
-
Niels Lohmann authored
🎨 Namespace `uint8_t` from the C++ stdlib
-
- 16 Mar, 2017 6 commits
-
-
Alexander “weej” Jones authored
-
Niels Lohmann authored
-
Niels Lohmann authored
add to_json method for C arrays
-
Niels Lohmann authored
- 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.
-
Niels Lohmann authored
With GCC 7, there are even more diagnostic flags.
-
Théo DELRIEU authored
If the array can be converted to basic_json::string_t, the overload in this commit is not chosen.
-
- 14 Mar, 2017 8 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
Replaced old std::invalid_argument exception by parse_error.111 to have unified exceptions in case of input stream errors.
-
Niels Lohmann authored
Also merged develop into this feature branch.
-
Niels Lohmann authored
When <Windows.h> is included with MSVC, a macro NOMINMAX is defined that yields compilation errors when max/min calls are encountered. This can be fixed by un-defining NOMINMAX, or by placing parentheses around all min/max calls. We chose the latter.
-
Niels Lohmann authored
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.
-
Niels Lohmann authored
Removed a check that already failed in MSVC.
-
Niels Lohmann authored
-
- 13 Mar, 2017 1 commit
-
-
Niels Lohmann authored
-
- 12 Mar, 2017 6 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
- 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.
-
Niels Lohmann authored
Removed some code that is not needed any more. Thus, streamlining the array from_json methods.
-
Niels Lohmann authored
These tests currently pass without any adjustments to the source code.
-