json
json copied to clipboard
JSON for Modern C++
- update Python requirements - fix style warnings - fix links - update navigation - replace PlantUML by Mermaid - add customer section to README - extend documentation of `parse`...
## Abstract Referring to issue #4358 , this pull request make some changes that causes implicit conversions from various integer types (listed here - https://godbolt.org/z/7Wrh6EanW) to boolean to fail. Now,...
Do not throw an exception when trying to get default value from empty json fix the issue #4507 ``` class Foo { public: NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT(Foo, a, b) Foo() = default; int...
Hi, it's been a while. Just connected to Github and saw the optional-related issue, tests pass with `-DJSON_ImplicitConversions=OFF`.
### Description I have a string, which is about 10MB in memory. However, when I use json::parse(), the memory cost is 1.6GB. I wonder if it's a bug? ### Reproduction...
### Description This is yet another issue about inconsistent/unexpected behaviour of accessing elements using `[]`. I believe that this problem is well-known to the library authors as it was discussed...
### Description NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT should not throw an exception when the json instance is empty and should use the default values of the member fields ### Reproduction steps run the Minimal...