json
json copied to clipboard
JSON for Modern C++
Usually when one of template parameters is changed, reference to new type cannot be implicitly converted to reference to old type. However for some reason this is not true for...
#### What is the issue you have? In [this test](https://github.com/nlohmann/json/blob/develop/test/src/unit-json_patch.cpp#L181) A simple remove is expected as a diff. But the following exemple is not following the expected behavior: Old JSON:...
As discussed in https://github.com/nlohmann/json/pull/3444#discussion_r857072525, we currently have no single place to collect all things deemed to wait until the next breaking change. The goal for this issue is to have...
This has been factored out of #3446 but builds upon that PR and needs to be rebased. Originally, I was looking for a workaround to be able to use `std::ranges::sort()`...
Hello, I stambled accross this clang-tidy warning in my project and investigated further, `it` being a `json::const_iterator`: ``` the parameter 'it' is copied for each invocation but only used as...
A proposed unit test for `unit-alt-string.cpp` contained the following code: ``` alt_json j = R"( { "foo": ["bar", "baz"] } )"_json; ``` This conversion compiles but fails to produce the...
Hi This pull request add support in the _sax parser_ and in the _msgpack deserializer_ for **object key** of types: - null - boolean - unsigned - integer - float...
#### What is the issue you have? I'm trying to parse msgpack data like: ``` { null: 1 } ``` which serializes as `81 C0 01`. But `nlohmann::json::from_msgpack` failed to...
Check if all jobs in AppVeyor are needed. AppVeyor is much slower as GitHub Actions. - [ ] Remove jobs that can also be executed in GitHub Actions. - [...
Currently parsing CBOR with this library can only handle string keys. At the project I am working on, we want to use integer keys to reduce the size of our...