- 30 Jul, 2017 3 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
Niels Lohmann authored
- replaced list of pairs by flat list in next_byte_in_range - implemented early exit in case of parse errors - reused memory for object keys - direct calls to embedded objects/arrays for insertions
-
- 28 Jul, 2017 1 commit
-
-
Niels Lohmann authored
-
- 27 Jul, 2017 5 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
enable_testing only if the JSON_BuildTests is ON
-
Niels Lohmann authored
You can now pass a boolean "allow_exceptions" to the parse functions. If it is false, no exceptions are thrown in case of a parse error. Instead, parsing is stopped at the first error and a JSON value of type "discarded" (check with is_discarded()) is returned.
-
Ilya Polishchuk authored
-
Niels Lohmann authored
-
- 26 Jul, 2017 2 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
-
- 25 Jul, 2017 1 commit
-
-
Nikita Ofitserov authored
On MSVC compiler, temporaries that are constructed during a list initialization, are sometimes destroyed even before calling the initializing constructor, instead of at the end of the containing full-expression. This is clearly non-conforming to [class.temporary]. As the impact of this bug is silently producing incorrect JSON values, move eagerly from rvalues to be safe. See https://stackoverflow.com/questions/24586411
-
- 24 Jul, 2017 1 commit
-
-
Nikita Ofitserov authored
-
- 23 Jul, 2017 7 commits
-
-
Nikita Ofitserov authored
C++ overload resolution/list initialization rules are hard.
-
Niels Lohmann authored
- You can now pass a reference to a vector to the to_cbor and to_msgpack functions. The output will be written (appended) to the vector. #476 - You can now pass an output stream with uint8_t character type to the to_cbor and to_msgpack functions. #477 - You can now read from uint8_t */size in the to_cbor and to_msgpack functions. An input adapter will be created from this pair, so you need to use braces. #478
-
Nikita Ofitserov authored
std::initializer_list does not own the temporaries created in its initialization. Therefore, storing it in an independent stack variable is unsafe.
-
Nikita Ofitserov authored
This commit works around an issue in std::initializer_list design. By using a detail::json_ref proxy with a mutable value inside, rvalue-ness of an input to list initializer is remembered and used later to move from the proxy instead of copying.
-
Nikita Ofitserov authored
-
Nikita Ofitserov authored
-
Niels Lohmann authored
We now rely on implicit conversions to an input_adapter object in the parse/accept functions.
-
- 22 Jul, 2017 5 commits
-
-
Niels Lohmann authored
-
Niels Lohmann authored
Travis found an error with Clang 3.8's sanitizers, see https://travis-ci.org/nlohmann/json/jobs/256366699. Unfortunately, I cannot reproduce this error with clang version 6.0.0 (trunk 308825) locally. However, this seems to be an issue, because so far, we did not reset a value after moving from it.
-
Niels Lohmann authored
-
Niels Lohmann authored
Internally, the parser now writes its result into a JSON value provided as a reference. To be usable, the public interfaces need to be extended.
-
Niels Lohmann authored
-
- 21 Jul, 2017 1 commit
-
-
Niels Lohmann authored
-
- 20 Jul, 2017 1 commit
-
-
Niels Lohmann authored
- Replaced codepoint calculation by bit operations. - Fixed several clang-tidy warnings.
-
- 17 Jul, 2017 1 commit
-
-
Niels Lohmann authored
A complete rewrite of the string escape function. It now provides codepoint-to-\uxxxx escaping. Invalid UTF-8 byte sequences are not escaped, but copied as-is. I haven’t spent much time optimizing the code - but the library now agrees with Python on every single Unicode character’s escaping (see file test/data/json_nlohmann_tests/all_unicode_ascii.json). Other minor changes: replaced "size_t" by "std::size_t"
-
- 15 Jul, 2017 1 commit
-
-
Niels Lohmann authored
Rename BuildTests to JSON_BuildTests
-
- 13 Jul, 2017 1 commit
-
-
Niels Lohmann authored
added Contributor Covenant Code of Conduct
-
- 12 Jul, 2017 1 commit
-
-
Niels Lohmann authored
add ensure_ascii parameter to dump. #330
-
- 11 Jul, 2017 4 commits
-
-
Ryan Mulder authored
-
Ryan Mulder authored
-
Ryan Mulder authored
-
Oleg Endo authored
This avoids potential conflicts with other libraries when the library is built from source and included in a bigger cmake build.
-
- 09 Jul, 2017 5 commits
-
-
Niels Lohmann authored
Refacto/split basic json
-
Théo DELRIEU authored
-
Théo DELRIEU authored
-
Théo DELRIEU authored
-
Théo DELRIEU authored
-