All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
#include <filesystem> doesn't work with gcc-7 when -std=c++17
is specified. #3203
Not able to use nlohmann json with c++ code built using emscripten to wasm #3200
Warning for shadowed variables #3188
Accessing missing keys on const json object leads to assert #3183
Data member is available, but null is reported, and program throws error #3173
serialization problem, from_json need construct new object #3169
std::filesystem unavailable on macOS lower deployment targets #3156
[json.exception.type_error.305] cannot use operator[] with a string argument with string #3151
json::dump() is not compatible with C++ standards #3147
Issue with json::parse decoding codepoints #3142
Simple parse of json object thinks it should be an array #3136
How to properly read a Json string that may be null in some cases? #3135
Deadlock on create json - windows only #3129
Wrong parsing of int64 values nearest of limit #3126
ordered_json doesn't support range based erase #3108
Apple build failed with json/single_include/nlohmann/json.hpp:4384:57: ‘path’ is unavailable #3097
GCC 7.5.0 with --std=c++17: filesystem: No such file or directory #3090
Drop Travis CI #3087
ordered_json::reset() compile error with nvcc #3013
Support for unordered_map as object_t #2932
Compiler warning with Intel compiler, same as #755 #2712
Compiler warnings with NVCC 11.2 #2676
some static analysis warning at line 11317 #1390
Compiling with icpc #755
Fix FAQ hyperlink typo in readme #3148 (Prince-Mendiratta)
Docs: Update skip_comments
to ignore_comments
#3145 (daniel-kun)
Add missing erase(first, last) function to ordered_map #3109 (nlohmann)
Add examples for parsing from iterator pair #3100 (nlohmann)
fix std::filesystem::path regression #3073 (theodelrieu)
Fix assertion failure for JSON_DIAGNOSTICS #3037 (carlsmedstad)
meta: fix is_compatible/constructible traits #3020 (theodelrieu)
Set parent pointers for values inserted via update() (fixes #3007). #3008 (AnthonyVH)
Fix -Wunused warnings on JSON_DIAGNOSTICS #2976 (gcerretani)
JSON_DIAGNOSTICS assertion for ordered_json #2962
Inserting in unordered json using a pointer retains the leading slash #2958
Test #9: test-cbor test case sample.json fails in debug mode - Stack overflow #2955
3.10.0 broke at least the Bear project #2953
2 tests fail in 3.10.0: cmake_fetch_content_configure, cmake_fetch_content_build #2951
ctest (58+60,/67 cmake_import_configure) fails when build with -D JSON_Install:BOOL=OFF because of missing nlohmann_jsonTargets.cmake #2946
Document vcpkg usage #2944
Linker error LNK2005 when compiling (x64) json-3.10.0.zip with Visual Studio 2019 16.11.1 #2941
Move Travis jobs to travis-ci.com #2938
Fix parent update for diagnostics with ordered_json #2963 (nlohmann)
Set stack size for some unit tests when using MSVC #2961 (nlohmann)
Add documentation for integration via vcpkg #2954 (nlohmann)
🚨 fix gdb_pretty_printer failure on basic types #2950 (senyai)
Updating the Homebrew Command #2943 (amirmasoudabdol)
Latest version 3.9.1 uses throw instead of JSON_THROW in the amalgamated json.hpp file #2934
Copy to a variable inside a Structure #2933
warning C4068: unknown pragma ‘GCC’ on MSVC/cl #2924
Errors during ninja test #2918
compiler warning: “not return a value” #2917
Comparison floating points causes warning #2909
Why can't I have std::vector<json&> testList? #2900
[json.hpp] from releases doesnt work #2897
g++ (11) -Wuseless-cast gives lots of warnings #2893
Cannot serialize and immediatly deserialize json to/from bson #2892
Floating-point precision conversion error #2876
How to avoid escaping for an already escaped string in .dump() #2870
can't parse std::vector<std::byte> #2869
ASAN detects memory leaks #2865
Binary subtype field cannot represent all CBOR tags #2863
string literals possibly being parsed as another type due to the presence of only digits and full-stops #2852
json::parse() works only with absolute paths #2851
Compiler Warnings on Raspberry Pi OS #2850
Braced initialization and aggregate initialization behavior is different for json::array()
function call. #2848
3.9.1: test suite is failing #2845
Documentation for macro JSON_NO_IO is missing #2842
Assertion failure when inserting into arrays with JSON_DIAGNOSTICS set #2838
HELP! There is a memory leak in the code?! #2837
Elegant conversion of a 2-D-json array to a standard C++ array #2805
Swift Package Manager support #2802
Referencing a subkey which doesn't exist gives crash #2797
Failed benchmark due to renamed branch #2796
Build Errors with VS 2019 and json Version 3.9.1 when attempting to replicate SAX Example #2782
Value with spaces cannot be parsed #2781
[Question] CBOR rfc support. #2779
Using JSON.hpp header file in Visual Studio 2013 (C++ Project) #2775
compilation error on clang-8 + C++17 #2759
Undefined symbol EOF #2755
Parsing a string into json object behaves differently under g++ and MinGW compilers. #2746
big git history size #2742
How to get reference of std::vector<T> #2735
CMake failure in VS2019 Community #2734
Possibility to use with custom c++ version to use in intel sgx enclaves #2730
Possibility to use without the dependency to file io and streams to use in intel sgx enclaves #2728
error C2784& error C2839... in my visual studio 2015 compiler #2726
-fno-expection
not respected anymore in 3.9.1 #2725
When exceptions disabled with JSON_NOEXCEPTION, lib just aborts without any message #2724
Critical error detected c0000374 on windows10 msvc 2019 16.8.5 #2710
unused parameter error/warning #2706
How to store data into a Map from json file #2691
Tests do not compile with pre-release glibc #2686
compile errors .... chromium-style #2680
.dump() not allowing compact form #2678
error: no matching function for call to ‘nlohmann::basic_json<>::value(int, std::set<int>&)’ #2671
Compiler warning: unused parameter #2668
Deserializing to a struct as shown on the project homepage throws compile time errors #2665
Unable to compile on MSVC 2019 with SDL checking enabled: This function or variable may be unsafe #2664
terminating with uncaught exception of type nlohmann::detail::type_error: [json.exception.type_error.302] type must be array, but is object #2661
unused-parameter on OSX when Diagnostics is off #2658
std::pair wrong serialization #2655
The result of json is_number_integer() function is wrong when read a json file #2653
2 backslash cause problem #2652
No support for using an external/system copy of Hedley #2651
error: incomplete type ‘qfloat16’ used in type trait expression #2650
Unused variable in exception class when not using improved diagnostics #2646
I am trying to do this - converting from wstring works incorrectly! #2642
Exception 207 On ARM Processor During Literal String Parsing #2634
double free or corruption (!prev) error on Json push_back and write #2632
nlohmann::detail::parse_error: syntax error while parsing CBOR string: expected length specification (0x60-0x7B) or indefinite string type (0x7F) #2629
please allow disabling implicit conversions in non-single-file use #2621
Preserve decimal formatting #2618
Visual Studio Visual Assist code issues reported by VA code inspection of file json.hpp #2615
Missing get function and no viable overloaded ‘=’ on mac #2610
corruption when parse from string #2603
Parse from byte-vector results in compile error #2602
Memory leak when working on ARM Linux #2601
Unhandled exception in test-cbor.exe Stack overflow when debugging project with Visual Studio 2019 16.7.7 compiled with c++17 or c++latest #2598
Error in download_test_data.vcxproj when compiling with Visual Studio 2019 16.7.7 Professional msbuild on Windows 10 2004 Professional #2594
Warnings C4715 and C4127 when building json-3.9.1 with Visual Studio 2019 16.7.7 #2592
I tried some change to dump() for [1,2,3...] #2584
try/catch block does not catch parsing error #2579
Serializing uint64_t is broken for large values #2578
deserializing arrays should be part of the library #2575
Deserialization to std::array with non-default constructable types fails #2574
Compilation error when trying to use same type for number_integer_t and number_unsigned_t in basic_json template specification. #2573
compiler error: directive output may be truncated writing between 2 and 8 bytes #2572
Incorrect convert map to json when key cannot construct an string i.e. int #2564
no matching function for call to ‘nlohmann::basic_json<>::basic_json(<brace-enclosed initializer list>)’ #2559
type_error factory creates a dangling pointer (in VisualStudio 2019) #2535
Cannot assign from ordered_json vector<CustomStruct> to value in not ordered json #2528
Qt6: Break changes #2519
valgrind memcheck Illegal instruction when use nlohmann::json::parse #2518
Buffer overflow #2515
Including CTest in the top-level CMakeLists.txt sets BUILD_TESTING=ON for parent projects #2513
Compilation error when using NLOHMANN_JSON_SERIALIZE_ENUM ordered_json on libc++ #2491
Missing “void insert( InputIt first, InputIt last );” overload in nlohmann::ordered_map #2490
Could not find a package configuration file provided by “nlohmann_json” #2482
json becomes empty for unknown reason #2470
Using std::wstring as StringType fails compiling #2459
Sample code in GIF slide outdated (cannot use emplace() with array) #2457
from_json<std::wstring> is treated as an array on latest MSVC #2453
MemorySanitizer: use-of-uninitialized-value #2449
I need help #2441
type conversion failing with clang ext_vector_type #2436
json::parse() can't be resolved under specific circumstances #2427
from_*(ptr, len) deprecation #2426
Error ONLY in release mode #2425
“Custom data source” exemple make no sense #2423
Compile errors #2421
Refuses to compile in project #2419
Compilation failure of tests with C++20 standard (caused by change of u8 literals) #2413
No matching function for call to ‘input_adapter’ under Xcode of with nlohmann version 3.9.1 #2412
Git tags are not valid semvers #2409
after dump, stderr output disappear #2403
Using custom string. #2398
value() throws unhandled exception for partially specified json object #2393
assertion on runtime causes program to stop when accessing const json with missing key #2392
Usage with -fno-elide-constructors causes dump() output to be array of null
s #2387
Build fails with clang-cl due to override of CMAKE_CXX_COMPILER(?) #2384
std::optional not working with primitive types #2383
Unexpected array when initializing a json const& on gcc 4.8.5 using uniform syntax #2370
setprecision support #2362
json::parse(allow_exceptions = false) documentation is misleading. #2360
std::begin and std::end usage without specifying std namespace #2359
Custom object conversion to json hangs in background thread #2358
Add support of nullable fields to NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE and NLOHMANN_DEFINE_TYPE_INTRUSIVE #2356
the portfile for the vcpkg is not working. #2351
Compiler warns of implicit fallthrough when defining preprocessor macro NDEBUG #2348
Compile error on Intel compiler running in Windows #2346
Build error caused by overwriting CMAKE_CXX_COMPILER #2343
Error: an attribute list cannot appear here JSON_HEDLEY_DEPRECATED_FOR #2342
compiler warning #2341
3.9.0: tests make build non-reproducible #2324
Initialization different between gcc/clang #2311
Attempt to get()
a numeric value as a type which cannot represent it should throw #2310
Surprising behaviour with overloaded operators #2256
ADL issue in input_adapter #2248
Output adapters should be templated. #2172
error when using nlohmann::json, std::function and std::bind #2147
Remove undefined behavior for const operator[] #2111
json({}) gives null instead of empty object with GCC and -std=c++17 #2046
GDB pretty printing support #1952
Always compile tests with all warnings enabled and error out on warnings #1798
Fixes Cppcheck warnings #1759
How to get position info or parser context with custom from_json() that may throw exceptions? #1508
Suggestion to improve value() accessors with respect to move semantics #1275
Add Key name to Exception #932
All: fix warnings when compiling with -Wswitch-enum #2927 (fhuberts)
Supress -Wfloat-equal on intended float comparisions #2911 (Finkman)
Suppress C4127 warning in unit-json_pointer.cpp #2875 (nlohmann)
Consistency with using
in README.md #2826 (justanotheranonymoususer)
Properly constrain the basic_json conversion operator #2825 (ldionne)
Specified git branch for google benchmark fetch in benchmark test #2795 (grafail)
Update URLs to HTTPS #2789 (TotalCaesar659)
Add a cmake option to use SYSTEM in target_include_directories #2762 (jpl-mac)
replace EOF with std::char_traits<char>::eof() #2756 (nlohmann)
Fix typo in README #2754 (mortenfyhn)
Possibility to use without the dependency to file io and streams to use in intel sgx enclaves #2729 (theShmoo)
pkg-config.pc.in: Don't concatenate paths #2690 (doronbehar)
Update doctest from 2.4.4 to 2.4.6 (fixes #2686) #2687 (musicinmybrain)
Update parse_exceptions.md - correct json::exception::parse_error
#2679 (frasermarlow)
Remove HEDLEY annotation from exception::what() #2673 (remyjette)
Fix amount of entries in the json object #2659 (abbaswasim)
Add support for deserialization of STL containers of non-default constructable types (fixes #2574). #2576 (AnthonyVH)
Fix compilation of input_adapter(container) in edge cases #2553 (jasujm)
Travis doesn't run any tests in C++17 mode #2540 (karzhenkov)
Clarify license of is_complete_type implementation #2534 (nlohmann)
Do not unconditionally redefine C++14 constructs #2533 (nlohmann)
Add MAIN_PROJECT check for test and install options #2514 (globberwops)
Ranged insert test section is added in unit-ordered_json.cpp #2512 (YarikTH)
Change argument name “subtype” in byte_container_with_subtype #2444 (linev)
Fix move constructor of json_ref #2405 (karzhenkov)
Properly select “Release” build for Travis #2375 (karzhenkov)
Fix and extend documentation of discarded values #2363 (nlohmann)
fix cmake script overwriting compiler path #2344 (ongjunjie)
Can't parse not formatted JSON. #2340
parse returns desired array contained in array when JSON text begins with square bracket on gcc 7.5.0 #2339
Unexpected deserialization difference between Mac and Linux #2338
Reading ordered_json from file causes compile error #2331
ignore_comment=true fails on multiple consecutive lines starting with comments #2330
Update documentation about Homebrew installation and CMake integration - Homebrew #2326
Chinese character initialize error #2325
json.update and vector<pair>does not work with ordered_json #2315
Ambiguous call to overloaded function #2210
Fix lexer to properly cope with repeated comments #2332 (nlohmann)
Fix name of Homebrew formula in documentation #2327 (nlohmann)
Fix a bug due to missing overloads in ordered_map container #2319 (nlohmann)
cmake: install pkg-config file relative to current_binary_dir #2318 (eli-schwartz)
Fixed installation of pkg-config file on other than Ubuntu #2314 (xvitaly)
Unknown Type Name clang error when using NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE #2313
Clang 10.0 / GCC 10.1 warnings on disabled exceptions #2304
Application stalls indefinitely with message byte size 10 #2293
linker error #2292
Add support for high-precision numbers in UBJSON encoding #2286
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE fails if the length of the argument is 10 #2280
Custom types : MACRO expansion bug #2267
to/from_json Failing To Convert String #2238
clang 9.0 report warning: unused type alias ‘size_type’ [-Wunused-local-typedef] #2221
Enormous array created when working with map<int,T> #2220
Can I disable sorting of json values #2219
Getting Qt types to work #2217
Convert to Qt QVariant #2216
How to custom serialize same data type of vector? #2215
json constructor does not support std::optional #2214
Failing to Parse Valid JSON #2209
(De-)Serialization of std::variant with namespaces #2208
Addint support for complex type #2207
array_index possible out of range #2205
Object deserialized as array #2204
Sending to a function a reference to a sub-branch #2200
How to Serialize derived class to JSON object? #2199
JSON incorrectly serialized #2198
Exception Unhandled out_of_range error #2197
msgpack serialisation : float is treated as 64bit float, not 32bit float. #2196
Is it possible to use compile-time type guarantees for JSON structures? #2195
Question : performance against python dict #2194
vs2017 compile error #2192
Check if a key exists #2191
Failed to run tests due to missing test data on builders without Internet access #2190
3.8.0: unit-cbor.cpp test failures #2189
‘nlohmann/json.hpp’ file not found #2188
How to send json data over the wire? #2185
Ubuntu 16 not supporting nlohmann/json? #2184
.get<std::string> causing emdash errors #2180
Object properties should not be re-sorted alphabetically #2179
Custom type registration : instrusive API #2175
Many version of the function “void to_json(json& j, const MyStruct& struct)” #2171
How should strings be escaped? #2155
Adding a value to an existing json puts it at the beginning instead of the end #2149
The header file is big, can we use what we need. #2134
Changing the default format for unordered_map (or other set) #2132
Getting size of deserialized bson document #2131
implicit conversion failure #2128
Error thrown when parsing in a subclass #2124
explicit conversion to string not considered for std::map keys in GCC8 #2096
Add support for JSONC #2061
Library provides template arg for string_type but assumes std::string in some places #2059
incremental parsing with sax_parser #2030
Question about flatten and unflatten #1989
CBOR parser doesn't skip tags #1968
Compilation failure using Clang on Windows #1898
Fail to build when including json.hpp as a system include #1818
Parsing string into json doesn't preserve the order correctly. #1817
[C++17] Allow std::optional to convert to nlohmann::json #1749
How can I save json object in file in order? #1717
Support for Comments #1513
clang compiler: error : unknown type name ‘not’ #1119
dump() without alphabetical order #1106
operator T() considered harmful #958
Order of the elements in JSON object #952
How to prevent alphabetical sorting of data? #727
Why is an object ordering values by Alphabetical Order? #660
Feature request: Comments #597
Head Elements Sorting #543
Automatic ordered JSON #424
Support for comments. #376
Optional comment support. #363
Strip comments / Minify #294
maintaining order of keys during iteration #106
added inline to NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro #2306 (jwittbrodt)
Add support for high-precision numbers in UBJSON encoding #2297 (nlohmann)
Serialisation macros: increase upper bound on number of member variables #2287 (pfeatherstone)
Add static assertion for missing binary function in SAX interface #2282 (nlohmann)
Clean up maintainer Makefiles and fix some linter warnings #2274 (nlohmann)
Add ordered_json specialization with ordered object keys #2258 (nlohmann)
Tag binary values in cbor if set #2244 (matthewbauer)
Refine documentation of error_handler parameter #2232 (nlohmann)
Enable CMake policy CMP0077 #2222 (alexreinking)
Add option to ignore comments in parse/accept functions #2212 (nlohmann)
Simple ordered_json that works on all supported compilers #2206 (gatopeich)
Use unsigned indizies for array index in json pointer #2203 (t-b)
Add option to not rely on Internet connectivity during test stage #2202 (nlohmann)
Serialize floating-point numbers with 32 bit when possible (MessagePack) #2201 (nlohmann)
C++20 support by removing swap specialization #2176 (gracicot)
Feat/explicit conversion operator #1559 (theodelrieu)
sorry delete this issue, i'm stupid #2187
Append to a std::nlohmann::json type #2186
Some troubles to compile the last revision #2177
# Top level CMakeLists.txt project(FOO) ... option(FOO_USE_EXTERNAL_JSON “Use an external JSON library” OFF) ... add_subdirectory(thirdparty) ... add_library(foo ...) ... # Note that the namespaced target will always be available regardless of the # import method target_link_libraries(foo PRIVATE nlohmann_json::nlohmann_json) #2170
https://www.github.com/nlohmann/json/tree/develop/include%2Fnlohmann%2Fjson_fwd.hpp #2169
templated from_json of non primitive types causes gcc error #2168
few warnings/errors in copy assignment #2167
Different output when upgrading from clang 9 to clang 10 #2166
Cannot build with VS 2019 / C++17 #2163
Q: When I received an illegal string,How the program knows? #2162
Problem while reading a json file #2161
converting std::chrono::system_clock::time_point to json. #2159
how to parse vector<struct> format #2157
nlohmann::json and =nullptr #2156
test-cbor fails #2154
Accessing array inside array syntax? #2151
Best way to catch errors when querying json #2150
JSON Data Mapping Key-Value from other Key-Value #2148
Conflicts with std <any> compiling with GCC 10 #2146
Incorrect CMake FetchContent example #2142
Help for a Beginner? #2141
Read Json from File #2139
How to feed a predefined integer value into json string #2138
getting json array inside json object #2135
Add .contains example to doc #2133
Is it safe to return string.c_str() received from get()? #2130
GCC 10: Compilation error when including any before including json header in C++17 mode #2129
Intersection of two json files #2127
App crashes when dump method called for non ascii chars. #2126
iterator based erase method #2122
quick and convenient api to get/set nested json values #2120
assigning nullptr to std::string #2118
usless_cast warnings with gcc 9.3 and 10.1 (C++17) #2114
clang 10 warning #2113
Possible incorrect _MSC_VER reference #2112
warning under gcc 10.1 #2110
Wdeprecated-declarations from GCC v10.1.0 #2109
Global std::vector from json #2108
heap-buffer-overflow when using nlohmann/json, ASAN, and gtest #2107
exception 0x770DC5AF when i read an special char in json file #2106
json::parse() fails to parse a dump(2,' ') output, yet does successfully parse dump() #2105
run test-udt error in MSVC 19.16.27034.0 #2103
Unable to dump to stringstream #2102
Can't ad an object in another objet #2101
Implicit conversion causes “cannot use operator[] with a string argument with string” #2098
C++20: char8_t #2097
Compilation issues when included in project #2094
string value with null character causes infinite loop #2093
corrupted size vs. prev_size (aborted) #2092
Get string field content without return std::string copy #2091
JSON Comments (JSON 5) #2090
Remove #include <ciso646> #2089
JSON library as a git submodule #2088
Apple Clang 11.0.3 on MacOS Catalina 10.15.4 not compiling #2087
Value function return empty object even if it exist #2086
Cannot debug but Run works #2085
Question about serialization. #2084
How to include in an external project #2083
Missing tests for binary values #2082
How to override default string serialization? #2079
Can't have a json type as a property in an arbitrary type #2078
New release? #2075
CMake FetchContent > Updating the documentation? #2073
How to convert STL Vector (of user defined type) to Json #2072
how to make an array of objects #2070
‘__int64’ was not declared #2068
[json.exception.type_error.317] cannot serialize binary data to text JSON #2067
Unexpected end of input; expected ‘[’, ‘{’, or a literal #2066
Json structure can be nested? #2065
Bug: returning reference to local temporary object #2064
Allow to use non strict parsing #2063
Crashing on json::at #2062
How to convert a const std::vector<char8_t> message to a json, to be able to parse it and extract information from it? Can you point to any examples? #2058
Nice library #2057
json.hpp:15372:22: error: expected unqualified-id if (not std::isfinite(x)): Started getting this bug after updating my XCode #2056
Confused as how I can extract the values from the JSON object. #2055
Warnings with GCC 10 #2052
Warnings with Clang 10 #2049
Update doctest #2048
Unclear error message: “cannot use operator[] with a string argument with array” #2047
Serializing std::variant<T, std::vector<T>> #2045
Crash when parse big jsonfile #2042
How to check if a key exists without silently generating null objects on the path #2041
Crash when traversing over items() of temporary json objects #2040
How to parse multiple line value ? #2039
SAX API uses unsigned std::size_t but -1 if element size is not known; #2037
How to parse big decimal data #2036
how use template <typename T> struct adl_serializer #2035
auto iterator returned by find to handle value depending if is string or numeric. #2032
pass find returned iterator to numeric variable. #2031
Parse error on valid json file #2029
Is here any elegant way to combine serialization and deserialization code? #2028
Notes about dump function #2027
Different JSON printouts for empty dictionary on Linux and Mac. #2026
easier way to get exception reason out of json_sax_dom_callback_parser without exceptions #2024
Using fifo_map with base class and derived class #2023
Error reading JSON File #2022
Parse causing crash on android. Cannot catch. #2021
Extra backslashes in nested json #2020
How to create patch for merge_patch input ? #2018
CppUTest/include/CppUTestExt/MockSupport.h:40: error: default argument for ‘MockFailureReporter* failureReporterForThisCall’ has type ‘void*’ #2017
including another file #2016
GNU PREREQ Error with gcc 9.3.0 #2015
Parse error: json.exception.parse_error.101 - invalid string: ill-formed UTF-8 byte #2014
Add more flexibility to basic_json's ObjectType (and ArrayType) #2013
afl persistent mode #2012
Compiler Errors under VS2019 in Appveyor CI #2009
Another compilation failure with Visual Studio #2007
Implicit cast to std::string broken again with VS2019 16.5.0 #2006
error: no matching member function for call to ‘AddRaw’ #2005
When I re-create an object again after the network request, an error is reported #2003
How to merge (and not replace) different Json::Value objects in jsoncpp #2001
scalar transforms to list #2000
Dump JSON containing multibyte characters #1999
Build error when modify value #1998
How do i include a vector of pointers in my json? #1997
Compiler error wrt incomplete types changed in gcc8.3.0-26 #1996
NaN-like comparison behavior of discarded is inconvenient #1988
Maintaining JSON package in my CMake #1987
reading int number and string number #1986
Build error: keyword is hidden by macro definition! #1985
JSON patch diff for op=add formation is not as per standard (RFC 6902) #1983
json_pointer.contains() exception is incorrectly raised #1982
Error with non existing key #1981
Closed #1978
Where is the library built and what is the name? #1977
The cmake_import example does not build #1976
Dumping core when reading invalid file #1975
Abort in dump() method #1973
Unclear docs regarding parser_callback_t callbacks #1972
Possible memory leak on push_back #1971
Is it possible to get a safe mutable reference/pointer to internal variant used in nlohmann json? #1970
Getting a flatten json to map<string, string> #1957
forced type conversion or lexical cast without exception. #1955
Add json_view type support to avoid excessive copying #1954
Adding “examples” section for real-life usages #1953
Add nlohmann::json::key_type #1951
cannot use operator[] with a string argument with string #1949
std::ifstream >> json error #1948
Cannot update json data in an iterator? #1947
How can i build this library in VS 2017? #1943
json_pointer.contains() exceptions when path not found #1942
Nested objects serialize/deserialize #1941
Compile warning on architectures that are not x86 #1939
Version of nlohmann-json-dev in debian packages #1938
Create a json object for every cycle #1937
How to get the object name? #1936
Reserve and resize function for basic json #1935
How to use json parse in tsl::ordread_map? #1934
C++14 support is not enabled with msvc2015 #1932
Need help with to_json for derived class, keep getting “cannot use operator” #1931
How to handle std::vector<std::uint8_t> #1930
Heap corruption issue #1929
Add std::wistream
support. #1928
This i can write and read any file thanks #1927
How can I get this simple example working? #1926
emplace_back does not seems to work with the int 0 #1925
Why nlohmann does not release memory #1924
Is it possible to have template json::parse
with noexcept
specifier? #1922
JSON to wstring? #1921
GCC 10 tests build failure #1920
Size of binary json representations #1919
Accessing strings (for example in keys or values) without having the lib create a copy of it. #1916
operator== documentation should show how to apply custom comparison function #1915
char8_t and std::u8string support #1914
std::is_pod is deprecated in C++20 #1913
Incomplete types reported by (experimental) GCC10 #1912
Compile warnings on MSVC 14.2 #1911
How to parse json file with type composition of std::optional and std::variant #1910
why root_schema be implemented as unique_ptr in json-validator.cpp,could I use it as shared_ptr? #1908
compile error in gcc-6.3.0 #1906
Scalar constexpr is odr-used when used as json initializer #1905
install Slack app #1904
typo in a comment #1903
Watch JSON variables in Debug #1902
does Json sdk cares about dfc dfd utf8 issue? #1901
Allow multiple line string value in JSON #1897
Writing map to json file #1896
Small documentation mistake #1895
why static function parse
cann't find in visual studio 2019 #1894
Best way to handle json files with missing key value pairs. #1893
accessing json object as multimap #1892
What is the best way to parse vec3s into glm::vec3 #1891
Get array of items without using vector #1890
Build errors (clang 11.0.0) on macOS 10.15.2 #1889
Multiple arrays to vectors help #1888
json::parse(begin, end) parse error on first character using uchar* #1887
issue in free() #1886
is_number_unsigned() returns false for positive integers (int or 0 or 1 literals) #1885
MSVC build failure with /Zc:__cplusplus and C++17 #1883
RFC 6901 op:replace & arrays #1882
Problem with serialization of my custom template doubly-linked list #1881
is_array() is True, but raise ‘cannot use operator[] for object iterators’ #1880
Serialize dynamic array #1879
Serialization of struct object. #1877
warning:c4503 #1875
Why are flattened empty objects/arrays not representable? #1874
Container Overflow (ASAN) when using operator >> on an ifs #1873
Sub-array to vector or map object? #1870
WIP: QT (cute) type supports #1869
Compiler flags to disable features and shrink code size #1868
null strings #1867
Struct with array of struct and __attribute__((packed)) #1866
Best way to extract numbers in the string? #1865
Displaying \?\Volume{guid} from string to json giving error #1864
not working when compiling as x86 #1863
Skipping evaluation of log line expressions with a macro, is it possible? #1862
Suppress warnings #1861
conflit with g++ compile option -mwindows #1860
How to serialize nested classes to semi-flat JSON object? #1859
Memory Requirement for large json file #1858
Query a binary format (BSON, CBOR, MessagePack, UBJSON) #1856
Documentation on operator[] behavior with missing keys #1855
Problem in converting string into JSON; Can't parse successfully. #1854
json.at_or_default(key, defaultval) #1852
please improve the enum conversion documentation (my example gist provided) #1851
Default value returned on ValueType nlohmann::basic_json::value (const typename object_t::key_type& key, const ValueType& default_value) #1850
Accounting for arbitrary precision numerical literals #1849
While trying to make a simple array, I get a nested array instead #1848
How to reuse the parser and serializer intermediate storage? #1847
Too much content in json.hpp leads to slow compilation #1845
Cannot read some data in json file #1843
Precompiled JSON library? #1842
Please change assert into throw(maybe) in line 17946 #1841
JSON for modern C++ ECCN information #1840
CI: reduce build time for Travis valgrind #1836
How do I traverse a json object and add new elements into the hierarchy #1834
Invalid UTF-8 byte at index 1: 0x65 #1831
Serialize big data in json #1828
Backslash '' in value causes exception #1827
from_json for non default constructible class with dependency injection #1819
Semi-frequent timeouts in test-unicode_all
with 3.6.1 (aarch64) #1816
input_adapter not user extensible #1813
crash at json::destroy on android #1812
Logs are repeating while cmake #1809
Add a the possibility to add dynamic json objects #1795
Unnecessary test data file in the release #1790
Add support for parse stack limiting #1788
GCC -Wuseless-cast warnings #1777
compilation issue with NVCC 9.0 #1773
Unexpected behavior with fifo_map json when copy and append #1763
Parse error #1761
Assignment (using value()) to nonexistent element behaves differently on Xcode 8 vs Xcode 10 #1758
Readme out of date #1756
cmake_* tests don‘t use the build system’s compiler #1747
Static assertions for template type properties required #1729
Use float and possibly half in json::to_cbor #1719
json::from_cbor does not respect allow_exceptions = false when input is string literal #1715
/Zc:__cplusplus leads to C2416 #1695
unflatten
vs objects with number-ish keys #1575
A “thinner” source code tar as part of release? #1572
Repository is almost 450MB #1497
Substantial performance penalty caused by polymorphic input adapter #1457
Move tests to a separate repo #1235
reduce repos size #1185
CMakeLists.txt in release zips? #1184
Minimal branch? #1066
Move test blobs to a submodule? #732
[Question] When using this as git submodule, will it clone the whole thing include test data and benchmark? #620
Need to improve ignores.. #567
Minimal repository (current size very large) #556
For a header-only library you have to clone 214MB #482
17 MB / 90 MB repo size!? #96
Update URLs to HTTPS #2152 (TotalCaesar659)
Fix Issue#1813: user defined input adapters #2145 (FrancoisChabot)
Fix issue#1939: Cast character to unsigned for comparison #2144 (XyFreak)
Fix issue#2142: readme: fix typo in CMake FetchContent example #2143 (quentin-dev)
Respect allow_exceptions=false for binary formats #2140 (nlohmann)
Add bleeding edge GCC to CI #2136 (aokellermann)
Fix issue#2086: disallow json::value_t type parameter in value() #2104 (dota17)
Fix README.md. Missing ``` #2077 (ArthurSonzogni)
Fix error message about invalid surrogate pairs #2076 (rmisev)
Add CMake fetchcontent documentation and tests #2074 (ArthurSonzogni)
Properly pass serialize_binary to dump function #2071 (nlohmann)
Fix returning reference to local temporary object #2069 (nlohmann)
updated wandbox link #2060 (alexandermyasnikov)
Add missing testcase about NaN in unit-constructor1.cpp #2043 (dota17)
Templatize basic_json constructor from json_ref #2034 (ArtemSarmini)
Fixes #1971 (memory leak in basic_json::push_back) #2025 (ArtemSarmini)
fix #1982:json_pointer.contains() exception is incorrectly raised #2019 (dota17)
fix error ‘setw’ is not a member of ‘std’ in Wandbox example #2002 (alexandermyasnikov)
Rename argument array_index to array_indx in json_pointer methods #1980 (linev)
README: Fix string representation of dump
ed json
#1979 (alexweej)
appveyor.yml: Compile and test with latest version for __cplusplus ma… #1958 (t-b)
templated input adapters #1950 (FrancoisChabot)
Update README.md : add a FAQ about memory release #1933 (dota17)
Fix link to parse function in README #1918 (kastiglione)
Readme: Updated links to hunter repo & docs #1917 (jothepro)
Adds instruction for using Build2's package manager #1909 (Klaim)
Update README.md #1907 (pauljurczak)
Fix warning: ignoring return value #1871 (sonulohani)
docs: add central repository as conan source to readme #1857 (gocarlos)
README: Package in MSYS2 renamed to nlohmann-json #1853 (podsvirov)
Update tests that generate CMake projects to use main project's C++ compiler #1844 (Tridacnid)
make CMake's version config file architecture-independent #1746 (uhoreg)
Add binary type support to all binary file formats, as well as an internally represented binary type #1662 (OmnipotentEntity)
Project branches #1839
Quadratic destruction complexity introduced in #1436 #1837
Trying to open a file #1814
Comparing data type with value_t::number_integer fails #1783
CMake version config file is architecture-dependent #1697
Segmentation fault in destructor in case of large inputs #1835
type_name() is not consistent with type() #1833
json::parse is not a member #1832
How do you deal with json* ? #1829
Combined find_package/add_subdirectory not linking libraries #1771
example code for ifstream reading a json file results in no operator error #1766
Warning: unsequenced modification and access to ‘range’ #1674
Segmentation fault (stack overflow) due to unbounded recursion #1419
Stack-overflow (OSS-Fuzz 4234) #832
Configure WhiteSource Bolt for GitHub #1830 (whitesource-bolt-for-github[bot])
Prevent stackoverflow caused by recursive deconstruction #1436 (nickaein)
std::is_constructible is always true with tuple #1825
Can't compile from_json(std::valarray<T>). #1824
json class should have a get_or member function #1823
NLOHMANN_JSON_SERIALIZE_ENUM macro capture's json objects by value #1822
Parse fails when number literals start with zero #1820
Weird behaviour of contains
with json_pointer
#1815
strange behaviour with json_pointer and .contains() #1811
Can #1695 be re-opened? #1808
Merge two json objects #1807
std::is_constructible<json, std::unordered_map<std::string, Data>> when to_json not defined #1805
Private data on parsing #1802
Capturing Line and Position when querying #1800
json error on parsing DBL_MAX from string #1796
De/Serialisation of vector of tupple object with nested obect need Help please #1794
Output json is corrupted #1793
variable name byte sometimes used as a #define #1792
Can't read json file #1791
Problems with special German letters #1789
Support for trailing commas #1787
json_pointer construction bug #1786
Visual Studio 2017 warning #1784
ciso646 header become obsolete #1782
Migrate LGTM.com installation from OAuth to GitHub App #1781
JSON comparison, contains and operator& #1778
pass a json object to a class contructor adds an array around the object #1776
‘Float’ number_float_function_t template parameter name conflicts with C ‘#define Float float’ #1775
A weird building problem :-( #1774
What is this json_ref? #1772
Interoperability with other languages #1770
Json dump #1768
json_pointer<>::back() should be const #1764
How to get value from array #1762
Merge two jsons #1757
Unable to locate nlohmann_jsonConfig.cmake #1755
json.hpp won;t compile VS2019 CLR/CLI app but does in console app #1754
[Nested Json Objects] Segmentation fault #1753
remove/replace assert with exceptions #1752
Add array support for update() function #1751
Is there a reason the get_to
method is defined in include/nlohmann/json.hpp
but not in single_include/nlohmann/json.hpp
? #1750
how to validate json object before calling dump() #1748
Unable to invoke accessors on json objects in lldb #1745
Escaping string before parsing #1743
Construction in a member initializer list using curly braces is set as ‘array’ #1742
Read a subkey from json object #1740
Serialize vector of glm:vec2 #1739
Support nlohmann::basic_json::value with JSON_NOEXCEPTION #1738
how to know the parse is error #1737
How to check if a given key exists in a JSON object #1736
Allow The Colon Key-Value Delimiter To Have A Space Before It [@ READ ONLY] #1735
Allow Tail { “Key”: “Value” } Comma [@ READ ONLY] #1734
No-throw json::value() #1733
JsonObject.dump() #1732
basic_json has no member “parse” #1731
Exception “type must be string, but is array” #1730
json::contains usage to find a path #1727
How to create JSON Object from my Structures of Data and Json File from that Object #1726
please provide an API to read JSON from file directly. #1725
How to modify a value stored at a key? #1723
CMake not correctly finding the configuration package for 3.7.0 #1721
name typo in the “spack package management” section of README.md #1720
How to add json to another json? #1718
json::parse() ubsan regression with v3.7.0 #1716
What I am doing wrong?!? #1714
Potential memory leak detected by Valgrind #1713
json::parse is not thread safe? #1712
static analysis alarm by cppcheck #1711
The compilation time is slow #1710
not linking properly with cmake #1709
Error in dump() with int64_t minimum value #1708
Crash on trying to deserialize json string on 3ds homebrew #1707
Can't compile VS2019. 13 Errors #1706
find an object that matches the search criteria #1705
IntelliSense goes crazy on VS2019 #1704
Installing on Ubuntu 16.04 #1703
Where is json::parse now? #1702
Forward header should't be amalgamated #1700
Json support for Cmake version 2.8.12 #1699
Intruisive scientific notation when using .dump(); #1698
Is there support for automatic serialization/deserialization? #1696
on MSVC dump() will hard crash for larger json #1693
puzzled implicit conversions #1692
Information: My project uses this awesome library #1691
Consider listing files explicitly instead of using GLOB #1686
Failing tests on MSVC with VS2019 15.9.13 x64 #1685
Consider putting the user-defined literals in a namespace #1682
Change from v2 to v3. Encoding with cp1252 #1680
How to add Fifo_map into json using Cmake #1679
include.zip should contain meson.build #1672
[Question] How do I parse JSON into custom types? #1669
Binary (0x05) data type for BSON to JSON conversion #1668
Possible to call dump from lldb? #1666
Segmentation fault when linked with libunwind #1665
Should I include single-header after my to_json and from_json custom functions declaration? Why not? #1663
Errors/Warnings in VS 2019 when Including Header File #1659
Return null object from object's const operator[] as well. #1658
Can't stream json object in to std::basic_stringstream<wchar_t> #1656
C2440 in vs2015 cannot convert from ‘initializer-list’ to nlohmann::basic_json #1655
Issues around get and pointers #1653
Non-member operator== breaks enum (de)serialization #1647
Valgrind: bytes in 1 blocks are definitely lost #1646
Convenient way to make ‘basic_json’ accept ‘QString’ as an key type as well? #1640
mongodb: nan, inf #1599
Error in adl_serializer #1590
Injecting class during serialization #1584
output_adapter not user extensible #1534
Inclusion of nlohmann/json.hpp causes OS/ABI to change on Linux #1410
Add library versioning using inline namespaces #1394
CBOR byte string support #1129
How to deserialize array with derived objects #716
Add restriction for tuple specialization of to_json #1826 (cbegue)
Fix some spelling errors - mostly in comments & documentation. #1803 (flopp)
iteration_proxy: Fix integer truncation from std::size_t to int #1797 (t-b)
test/CMakeLists.txt: Use an explicit list instead of GLOB #1779 (t-b)
Make json_pointer::back const (resolves #1764) #1769 (chris0x44)
Allow items() to be used with custom string #1765 (crazyjul)
Add gcc 9 and compile with experimental C++20 support #1724 (t-b)
release: add singleinclude and meson.build to include.zip #1694 (eli-schwartz)
How can I retrieve uknown strings from json file in my C++ program. #1684
contains() is sometimes causing stack-based buffer overrun exceptions #1683
How to deserialize arrays from json #1681
Compilation failed in VS2015 #1678
Why the compiled object file is so huge? #1677
From Version 2.1.1 to 3.6.1 serialize std::set #1676
Qt deprecation model halting compiltion #1675
Build For Raspberry pi , Rapbery with new Compiler C++17 #1671
Build from Raspberry pi #1667
Can not translate map with integer key to dict string ? #1664
Double type converts to scientific notation #1661
Missing v3.6.1 tag on master branch #1657
Support Fleese Binary Data Format #1654
Suggestion: replace alternative tokens for !, && and || with their symbols #1652
Build failure test-allocator.vcxproj #1651
How to provide function json& to_json() which is similar as ‘void to_json(json&j, const CObject& obj)’ ? #1650
Can't throw exception when starting file is a number #1649
to_json / from_json with nested type #1648
How to create a json object from a std::string, created by j.dump? #1645
Problem getting vector (array) of strings #1644
json.hpp compilation issue with other typedefs with same name #1642
nlohmann::adl_serializer<T,void>::to_json no matching overloaded function found #1641
overwrite adl_serializer<bool, void> to change behaviour #1638
json.SelectToken(“Manufacturers.Products.Price”); #1637
Add json type as value #1636
Unit conversion test error: conversion from ‘nlohmann::json’ to non-scalar type ‘std::string_view’ requested #1634
nlohmann VS JsonCpp by C++17 #1633
To integrate an inline helper function that return type name as string #1632
Return JSON as reference #1631
Updating from an older version causes problems with assing a json object to a struct #1630
Can without default constructor function for user defined classes when only to_json is needed? #1629
Compilation fails with clang 6.x-8.x in C++14 mode #1628
Treating floating point as string #1627
error parsing character å #1626
[Help] How to Improve Json Output Performance with Large Json Arrays #1624
Suggested link changes for reporting new issues [blob/develop/REAME.md and blob/develop/.github/CONTRIBUTING.md] #1623
Broken link to issue template in CONTRIBUTING.md #1622
Missing word in README.md file #1621
Package manager instructions in README for brew is incorrect #1620
Building with Visual Studio 2019 #1619
Precedence of to_json and builtin harmful #1617
The type json is missing from the html documentation #1616
variant is not support in Release 3.6.1? #1615
Replace assert with throw for const operator[] #1614
Memory Overhead is Too High (10x or more) #1613
program crash everytime, when other data type incomming in json stream as expected #1612
Improved Enum Support #1611
is it possible convert json object back to stl container ? #1610
Add C++17-like emplace.back() for arrays. #1609
is_nothrow_copy_constructible fails for json::const_iterator on MSVC2015 x86 Debug build #1608
Reading and writing array elements #1607
Converting json::value to int #1605
I have a vector of keys and and a string of value and i want to create nested json array #1604
In compatible JSON object from nlohmann::json to nohman::json - unexpected end of input; expected ‘[’, ‘{’, or a literal #1603
json parser crash if having a large number integer in message #1602
Value method with undocumented throwing 302 exception #1601
Accessing value with json pointer adds key if not existing #1600
README.md broken link to project documentation #1597
Random Kudos: Thanks for your work on this! #1596
json::parse return value and errors #1595
initializer list constructor makes curly brace initialization fragile #1594
trying to log message for missing keyword, difference between [“foo”] and at(“foo”) #1593
std::string and std::wstring to_json
#1592
I have a C structure which I need to convert to a JSON. How do I do it? Haven't found proper examples so far. #1591
dump_escaped possible error ? #1589
json::parse() into a vector<string> results in unhandled exception #1587
push_back()/emplace_back() on array invalidates pointers to existing array items #1586
Getting nlohmann::detail::parse_error on JSON generated by nlohmann::json not sure why #1583
getting error terminate called after throwing an instance of ‘std::domain_error’ what(): cannot use at() with string #1582
how i create json file #1581
prevent rounding of double datatype values #1580
Documentation Container Overview Doesn't Reference Const Methods #1579
Writing an array into a nlohmann::json object #1578
compilation error when using with another library #1577
Homebrew on OSX doesn't install cmake config file #1576
JSON Parse Out of Range Error #1574
Integrating into existing CMake Project #1573
conversion to std::string failed #1571
jPtr operation does not throw #1569
How to generate dll file for this project #1568
how to pass variable data to json in c #1567
I want to achieve an upgraded function. #1566
How to determine the type of elements read from a JSON array? #1564
try_get_to #1563
example code compile error #1562
How to iterate over nested json object #1561
Build Option/Separate Function to Allow to Throw on Duplicate Keys #1560
Compiler Switches -Weffc++ & -Wshadow are throwing errors #1558
warning: use of the ‘nodiscard’ attribute is a C++17 extension #1557
Import/Export compressed JSON files #1556
GDB renderers for json library #1554
Is it possible to construct a json string object from a binary buffer? #1553
json objects in list #1552
Matrix output #1550
Using json merge_patch on ordered non-alphanumeric datasets #1549
Invalid parsed value for big integer #1548
Integrating with android ndk issues. #1547
add noexcept json::value(“key”, default) method variant? #1546
Thank you! 🙌 #1545
Output and input matrix #1544
Add regression tests for MSVC #1543
[Help Needed!] Season of Docs #1542
program still abort() or exit() with try catch #1541
Have a json::type_error exception because of JSON object #1540
Using versioned namespaces #1539
Quoted numbers #1538
Reading a JSON file into an object #1537
Releases 3.6.0 and 3.6.1 don't build on conda / windows #1536
[Clang] warning: use of the ‘nodiscard’ attribute is a C++17 extension [-Wc++17-extensions] #1535
wchar_t/std::wstring json can be created but not accessed #1533
json stringify #1532
How can I use it from gcc on RPI #1528
std::pair treated as an array instead of key-value in std::vector<std::pair<>>
#1520
Excessive Memory Usage for Large Json File #1516
SAX dumper #1512
Conversion to user type containing a std::vector not working with documented approach #1511
Inconsistent use of type alias. #1507
Is there a current way to represent strings as json int? #1503
Intermittent issues with loadJSON #1484
use json construct std::string #1462
JSON Creation #1461
Null bytes in files are treated like EOF #1095
Feature: to_string(const json& j); #916
Use GNUInstallDirs instead of hard-coded path. #1673 (ghost)
Fix json.hpp compilation issue with other typedefs with same name (Issue #1642) #1643 (kevinlul)
Add explicit conversion from json to std::string_view in conversion unit test #1639 (taylorhoward92)
Fix/1511 #1555 (theodelrieu)
Remove C++17 extension warning from clang; #1535 #1551 (heavywatal)
How can I turn a string of a json array into a json array? #1526
Minor: missing a std:: namespace tag #1521
how to precision to four decimal for double when use to_json #1519
error parse #1518
Compile error: template argument deduction/substitution failed #1515
std::complex type #1510
CBOR byte string support #1509
Compilation error getting a std::pair<> on latest VS 2017 compiler #1506
“Integration” section of documentation needs update? #1505
Json object from string from a TCP socket #1504
MSVC warning C4946 (“reinterpret_cast used between related classes”) compiling json.hpp #1502
How to programmatically fill an n-th dimensional JSON object? #1501
Error compiling with clang and JSON_NOEXCEPTION
: need to include cstdlib
#1500
The code compiles unsuccessfully with android-ndk-r10e #1499
Cmake 3.1 in develop, when is it likely to make it into a stable release? #1498
Some Help please object inside array #1494
How to get data into vector of user-defined type from a Json object #1493
how to find subelement without loop #1490
json to std::map #1487
Type in README.md #1486
Error in parsing and reading msgpack-lite #1485
Compiling issues with libc 2.12 #1483
How do I use reference or pointer binding values? #1482
Compilation fails in MSVC with the Microsoft Language Extensions disabled #1481
Functional visit #1480
[Question] Unescaped dump #1479
Some Help please #1478
Global variables are stored within the JSON file, how do I declare them as global variables when I read them out in my C++ program? #1476
Unable to modify one of the values within the JSON file, and save it #1475
Documentation of parse function has two identical @pre causes #1473
GCC 9.0 build failure #1472
Can we have an exists()
method? #1471
How to parse multi object json from file? #1470
How to returns the name of the upper object? #1467
Error: “tuple_size” has already been declared in the current scope #1466
Checking keys of two jsons against eachother #1465
Disable installation when used as meson subproject #1463
Unpack list of integers to a std::vector<int> #1460
Implement DRY definition of JSON representation of a c++ class #1459
json.exception.type_error.305 with GCC 4.9 when using C++ {} initializer #1458
API to convert an “uninitialized” json into an empty object or empty array #1456
How to parse a vector of objects with const attributes #1453
NLOHMANN_JSON_SERIALIZE_ENUM potentially requires duplicate definitions #1450
Question about making json object from file directory #1449
.get() throws error if used with userdefined structs in unordered_map #1448
Integer Overflow (OSS-Fuzz 12506) #1447
If a string has too many invalid UTF-8 characters, json::dump attempts to index an array out of bounds. #1445
Setting values of .JSON file #1444
alias object_t::key_type in basic_json #1442
Latest Ubuntu package is 2.1.1 #1438
lexer.hpp(1363) ‘_snprintf’: is not a member | Visualstudio 2017 #1437
Static method invites inadvertent logic error. #1433
EOS compilation produces “fatal error: ‘nlohmann/json.hpp’ file not found” #1432
Support for bad commas #1429
Please have one base exception class for all json exceptions #1427
Compilation warning: ‘tuple_size’ defined as a class template here but previously declared as a struct template #1426
Which version can be used with GCC 4.8.2 ? #1424
Ignore nullptr values on constructing json object from a container #1422
Support for custom float precision via unquoted strings #1421
It is possible to call json::find
with a json_pointer as argument. This causes runtime UB/crash. #1418
Dump throwing exception #1416
Build error #1415
Append version to include.zip #1412
error C2039: ‘_snprintf’: is not a member of ‘std’ - Windows #1408
Deserializing to vector #1407
Efficient way to set a json
object as value into another json
key #1406
Document return value of parse() when allow_exceptions == false and parsing fails #1405
Unexpected behaviour with structured binding #1404
Which native types does get<type>() allow? #1403
Add something like Json::StaticString #1402
-Wmismatched-tags in 3.5.0? #1401
Coverity Scan reports an UNCAUGHT_EXCEPT issue #1400
fff #1399
sorry this is not an issue, just a Question, How to change a key value in a file and save it ? #1398
appveyor x64 builds appear to be using Win32 toolset #1374
Serializing/Deserializing a Class containing a vector of itself #1373
Retrieving array elements. #1369
Deserialize #1366
call of overloaded for push_back and operator+= is ambiguous #1352
got an error and cann't figure it out #1351
Improve number-to-string conversion #1334
Implicit type conversion error on MSVC #1333
NuGet Package #1132
Fix gcc9 build error test/src/unit-allocator.cpp (Issue #1472) #1492 (stac47)
Do proper endian conversions #1489 (andreas-schwab)
Add operator/= and operator/ to construct a JSON pointer by appending two JSON pointers #1469 (garethsb)
Disable Clang -Wmismatched-tags warning on tuple_size / tuple_element #1468 (past-due)
Disable installation when used as meson subproject. #1463 #1464 (elvisoric)
attempt to fix #1445, flush buffer in serializer::dump_escaped in UTF8_REJECT case. #1446 (scinart)
:rotating_light: fixed unused variable warning #1435 (pboettch)
allow push_back() and pop_back() calls on json_pointer #1434 (pboettch)
Add instructions about using nlohmann/json with the conda package manager #1430 (nicoddemus)
buildsystem: relax requirement on cmake version #1409 (yann-morin-1998)
Copyconstructor inserts original into array with single element #1397
Get value without explicit typecasting #1395
Big file parsing #1393
Adding Structured Binding Support #1388
map<json::value_t, string> exhibits unexpected behavior #1387
Error Code Return #1386
using unordered_map as object type #1385
float precision #1384
[json.exception.type_error.316] invalid UTF-8 byte at index 1: 0xC3 #1383
Inconsistent Constructor (GCC vs. Clang) #1381
#define or || #1379
How to iterate inside the values ? #1377
items() unable to get the elements #1375
conversion json to std::map doesn't work for types <int, double> #1372
A minor issue in the build instructions #1371
Using this library without stream ? #1370
Writing and reading BSON data #1368
Retrieving array elements from object type iterator. #1367
json::dump() silently crashes if items contain accented letters #1365
warnings in MSVC (2015) in 3.4.0 related to bool... #1364
Cant compile with -C++17 and beyond compiler options #1362
json to concrete type conversion through reference or pointer fails #1361
the first attributes of JSON string is misplaced #1360
Copy-construct using initializer-list converts objects to arrays #1359
About value(key, default_value) and operator[](key) #1358
Problem with printing json response object #1356
Serializing pointer segfaults #1355
Read long long int
data as a number. #1354
eclipse oxygen in ubuntu get<size_t> is ambiguous #1353
Can't build on Visual Studio 2017 v15.8.9 #1350
cannot parse from string? #1349
Error: out_of_range #1348
expansion pattern ‘CompatibleObjectType’ contains no argument packs, with CUDA 10 #1347
Unable to update a value for a nested(multi-level) json file #1344
Fails to compile when std::iterator_traits is not SFINAE friendly. #1341
EOF flag not set on exhausted input streams. #1340
Shadowed Member in merge_patch #1339
Periods/literal dots in keys? #1338
Protect macro expansion of commonly defined macros #1337
How to validate an input before parsing? #1336
Non-verifying dump() alternative for debugging/logging needed #1335
Json Libarary is not responding for me in c++ #1332
Question - how to find an object in an array #1331
Nesting additional data in json object #1328
can to_json() be defined inside a class? #1324
CodeBlocks IDE can't find json.hpp
header #1318
Change json_pointer to provide an iterator begin/end/etc, don't use vectors, and also enable string_view #1312
Xcode - adding it to library #1300
unicode: accept char16_t, char32_t sequences #1298
unicode: char16_t* is compiler error, but char16_t[] is accepted #1297
Dockerfile Project Help Needed #1296
Comparisons between large unsigned and negative signed integers #1295
CMake alias to nlohmann::json
#1291
Release zips without tests #1285
separate object_t::key_type from basic_json::key_type, and use an allocator which returns object_t::key_type #1274
Is there a nice way to associate external values with json elements? #1256
Delete by json_pointer #1248
Expose lexer, as a StAX parser #1219
Subclassing json() & error on recursive load #1201
Check value for existence by json_pointer #1194
readme: fix typo #1380 (manu-chroma)
recommend using explicit from JSON conversions #1363 (theodelrieu)
Add a SFINAE friendly iterator_traits and use that instead. #1342 (dgavedissian)
Big uint64_t values are serialized wrong #1327
[Question] Efficient check for equivalency? #1325
Can't use ifstream and .clear() #1321
[Warning] -Wparentheses on line 555 on single_include #1319
Compilation error using at and find with enum struct #1316
Parsing JSON from a web address #1311
How to convert JSON to Struct with embeded subject #1310
Null safety/coalescing function? #1309
Building fails using single include file: json.hpp #1308
json::parse(std::string) Exception inside packaged Lib #1306
Problem in Dockerfile with installation of library #1304
compile error in from_json converting to container with std::pair #1299
Json that I am trying to parse, and I am lost Structure Array below top level #1293
Serializing std::variant causes stack overflow #1292
How do I go about customising from_json to support __int128_t/__uint128_t? #1290
merge_patch: inconsistent behaviour merging empty sub-object #1289
Buffer over/underrun using UBJson? #1288
Enable the latest C++ standard with Visual Studio #1287
truncation of constant value in to_cbor() #1286
eosio.wasmsdk error #1284
use the same interface for writing arrays and non-arrays #1283
How to read json file with optional entries and entries with different types #1281
merge result not as espected #1279
how to get only “name” from below json #1278
syntax error on right json string #1276
Parsing JSON Array where members have no key, using custom types #1267
I get a json exception periodically from json::parse for the same json #1263
serialize std::variant<...> #1261
GCC 8.2.1. Compilation error: invalid conversion from... #1246
BSON support #1244
enum to json mapping #1208
Soften the landing when dumping non-UTF8 strings (type_error.316 exception) #1198
Allow to set error handler for decoding errors #1314 (nlohmann)
Add Meson related info to README #1305 (koponomarenko)
Improve diagnostic messages for binary formats #1303 (nlohmann)
add new is_constructible_* traits used in from_json #1301 (theodelrieu)
add constraints for variadic json_ref constructors #1294 (theodelrieu)
Thirdparty benchmark: Fix Clang detection. #1277 (Lord-Kamina)
merge_patch
and update
#1183resize
method. #1057unique_ptr<>
and shared_ptr<>
#975Updation of child object isn't reflected in parent Object #968
How to add user defined C++ path to sublime text #966
fast number parsing #965
With non-unique keys, later stored entries are not taken into account anymore #963
Timeout (OSS-Fuzz 6034) #962
Incorrect parsing of indefinite length CBOR strings. #961
Reload a json file at runtime without emptying my std::ifstream #959
Split headers should be part of the release #956
Coveralls shows no coverage data #953
Feature request: Implicit conversion to bool #951
converting json to vector of type with templated constructor #924
No structured bindings support? #901
[Request] Macro generating from_json() and to_json() #895
basic_json::value throws exception instead of returning default value #871
Fix constraints on from_json(CompatibleArrayType) #969 (theodelrieu)
Make coveralls watch the include folder #957 (theodelrieu)
Fix links in README.md #955 (patrikhuber)
Add a note about installing the library with cget #954 (pfultz2)
define private public
in test files #913uint8_t
from the C++ stdlib #510 (alexweej)std::vector
#667void *
#655j >> ss;
in file json.hpp:7405:26
and FAILED unit tests with MinGWx64! #616typedef
#611from_json
? #5380
#484reserve
function for array to reserve memory before adding json values into it #436JSON5 #348
Check “Parsing JSON is a Minefield” #344
Allow hex numbers #342
Convert strings to numbers #341
""-operators ignore the length parameter #340
JSON into std::tuple #339
JSON into vector #335
Installing with Homebrew on Mac Errors (El Capitan) #331
g++ make check results in error #312
Cannot convert from ‘json’ to ‘char’ #276
Please add a Pretty-Print option for arrays to stay always in one line #229
Conversion to STL map<string, vector<int>> gives error #220
std::unorderd_map cannot be used as ObjectType #164
How to handle json files? #333
This file requires compiler and library support .... #332
Segmentation fault on saving json to file #326
parse error - unexpected <uninitialized> with 2.0.5 #325
Add nested object capability to pointers #323
Fix usage examples' comments for std::multiset #322
json_unit runs forever when executed in build directory #319
Visual studio 2015 update3 true != TRUE #317
releasing single header file in compressed format #316
json object from std::ifstream #315
Fix usage examples' comments for std::multiset #321 (vasild)
Include dir relocation #318 (ChristophJud)
warning C4706: assignment within conditional expression #295
Q: Is it possible to build json tree from already UTF8 encoded values? #293
Equality operator results in array when assigned object #292
Support for integers not from the range [-(2**53)+1, (2**53)-1] in parser #291
Support for iterator-range parsing #290
Horribly inconsistent behavior between const/non-const reference in operator [] () #289
Silently get numbers into smaller types #288
Incorrect parsing of large int64_t numbers #287
[question]: macro to disable floating point support #284
unit-constructor1.cpp: Fix floating point truncation warning #300 (t-b)
can function dump() return string in the order I push in the json object ? #286
Error on the Mac: Undefined symbols for architecture x86_64 #285
value() does not work with _json_pointer types #283
Build error for std::int64 #282
strings can't be accessed after dump()->parse() - type is lost #281
Easy serialization of classes #280
recursive data structures #277
hexify() function emits conversion warning #270
let the makefile choose the correct sed #279 (murinicanor)
Update hexify to use array lookup instead of ternary (#270) #275 (dtoma)
json::diff generates incorrect patch when removing multiple array elements. #269
Docs - What does Json[key] return? #267
Compiler Errors With JSON.hpp #265
Ambiguous push_back and operator+= overloads #263
Preseving order of items in json #262
'' char problem in strings #261
VS2015 compile fail #260
-Wconversion warning #259
Maybe a bug #258
Few tests failed on Visual C++ 2015 #257
Access keys when iteration with new for loop C++11 #256
multiline text values #255
Error when using json in g++ #254
is the release 2.0? #253
concatenate objects #252
Encoding #251
Unable to build example for constructing json object with stringstreams #250
Hexadecimal support #249
Update long-term goals #246
Contribution To This Json Project #245
Trouble using parser with initial dictionary #243
Unit test fails when doing a CMake out-of-tree build #241
-Wconversion warnings #239
Additional integration options #237
.get<std::string>() works for non spaced string but returns as array for spaced/longer strings #236
ambiguous overload for ‘push_back’ and ‘operator+=’ #235
Can't use basic_json::iterator as a base iterator for std::move_iterator #233
json object's creation can freezes execution #231
Incorrect dumping of parsed numbers with exponents, but without decimal places #230
double values are serialized with commas as decimal points #228
Move semantics with std::initializer_list #225
replace emplace #224
abort during getline in yyfill #223
free(): invalid pointer error in GCC 5.2.1 #221
Error compile Android NDK error: ‘strtof’ is not a member of ‘std’ #219
Wrong link in the README.md #217
Wide character strings not supported #216
Memory allocations using range-based for loops #214
would you like to support gcc 4.8.1? #211
Reading concatenated json's from an istream #210
Conflicting typedef of ssize_t on Windows 32 bit when using Boost.Python #204
Inconsistency between operator[] and push_back #203
Small bugs in json.hpp (get_number) and unit.cpp (non-standard integer type test) #199
GCC/clang floating point parsing bug in strtod() #195
What is within scope? #192
Bugs in miloyip/nativejson-benchmark: roundtrips #187
Floating point exceptions #181
Integer conversion to unsigned #178
map string string fails to compile #176
In basic_json::basic_json(const CompatibleArrayType& val), the requirement of CompatibleArrayType is not strict enough. #174
Provide a FAQ #163
Implicit assignment to std::string fails #144
Fix Issue #265 #266 (06needhamt)
Out of tree builds and a few other miscellaneous CMake cleanups. #242 (ChrisKitching)
Added missing cerrno header to fix ERANGE compile error on android #222 (Teemperor)
Create PULL_REQUEST_TEMPLATE.md #213 (whackashoe)
replaced ssize_t occurrences with auto (addresses #204) #205 (nlohmann)
Fixed issue #199 - Small bugs in json.hpp (get_number) and unit.cpp (non-standard integer type test) #200 (twelsby)
Issue #195 - update Travis to Trusty due to gcc/clang strtod() bug #196 (twelsby)
Issue #178 - Extending support to full uint64_t/int64_t range and unsigned type (updated) #193 (twelsby)
Small error in pull #185 #194
Bugs in miloyip/nativejson-benchmark: floating-point parsing #186
Floating point equality #185
Unused variables in catch #180
Typo in documentation #179
JSON performance benchmark comparision #177
Since re2c is often ignored in pull requests, it may make sense to make a contributing.md file #175
Question about exceptions #173
Android? #172
Cannot index by key of type static constexpr const char* #171
Add assertions #168
MSVC 2015 build fails when attempting to compare object_t #167
Member detector is not portable #166
Unnecessary const_cast #162
Question about get_ref() #128
range based for loop for objects #83
Consider submitting this to the Boost Library Incubator #66
Fixed Issue #186 - add strto(f|d|ld) overload wrappers, “-0.0” special case and FP trailing zero #191 (twelsby)
Issue #185 - remove approx() and use #pragma to kill warnings #190 (twelsby)
Fixed Issue #171 - added two extra template overloads of operator[] for T* arguments #189 (twelsby)
Fixed issue #167 - removed operator ValueType() condition for VS2015 #188 (twelsby)
add key name to exception #160
Getting member discarding qualifyer #159
basic_json::iterator::value() output includes quotes while basic_json::iterator::key() doesn't #158
Indexing const basic_json<>
with const basic_string<char>
#157
token_type_name(token_type t): not all control paths return a value #156
prevent json.hpp from emitting compiler warnings #154
json::parse(string) does not check utf8 bom #152
unsigned 64bit values output as signed #151
Wish feature: json5 #150
Unable to compile on MSVC 2015 with SDL checking enabled: This function or variable may be unsafe. #149
“Json Object” type does not keep object order #148
dump() convert strings encoded by utf-8 to shift-jis on windows 10. #147
Unable to get field names in a json object #145
Question: Is the use of incomplete type correct? #138
json.hpp:5746:32: error: ‘to_string’ is not a member of ‘std’ #136
Bug in basic_json::operator[] const overload #135
wrong enable_if for const pointer (instead of pointer-to-const) #134
overload of at() with default value #133
Splitting source #132
Question about get_ptr() #127
Visual Studio 14 Debug assertion failed #125
Memory leak in face of exceptions #118
Find and Count for arrays #117
dynamically constructing an arbitrarily nested object #114
Returning any data type #113
Compile error with g++ 4.9.3 cygwin 64-bit #112
insert json array issue with gcc4.8.2 #110
error: unterminated raw string #109
vector<json> copy constructor really weird #108
[clang-3.6.2] string/sstream with number to json issue #107
object field accessors #103
v8pp and json #95
Wishlist #65
Windows/Visual Studio (through 2013) is unsupported #62
Replace sprintf with hex function, this fixes #149 #153 (whackashoe)
Fix character skipping after a surrogate pair #146 (robertmrk)
disabled “CopyAssignable” test for MSVC in Debug mode, see #125 #131 (dariomt)
removed stream operator for iterator, resolution for #125 #130 (dariomt)
remove invalid parameter ‘-stdlib=libc++’ in CMakeLists.txt #124 (emvivre)
Overload parse() to accept an rvalue reference #120 (silverweed)
Finish documenting the public interface in Doxygen #102
Binary string causes numbers to be dumped as hex #101
failed to iterator json object with reverse_iterator #100
‘noexcept’ : unknown override specifier #99
json float parsing problem #98
Adjust wording to JSON RFC #97
static analysis warnings #94
reverse_iterator operator inheritance problem #93
init error #92
access by (const) reference #91
is_integer and is_float tests #90
Nonstandard integer type #89
static library build #84
lexer::get_number return NAN #82
MinGW have no std::to_string #80
Incorrect behaviour of basic_json::count method #78
Invoking is_array() function creates “null” value #77
dump() / parse() not idempotent #76
Handle infinity and NaN cases #70
errors in g++-4.8.1 #68
Keys when iterating over objects #67
Compilation results in tons of warnings #64
Complete brief documentation #61
Double quotation mark is not parsed correctly #60
Get coverage back to 100% #58
erase elements using iterators #57
Removing item from array #56
Serialize/Deserialize like PHP? #55
Numbers as keys #54
Why are elements alphabetized on key while iterating? #53
Document erase, count, and iterators key and value #52
Do not use std::to_string #51
Supported compilers #50
Confused about iterating through json objects #49
Use non-member begin/end #48
Erase key #47
Key iterator #46
Add count member function #45
Problem getting vector (array) of strings #44
Compilation error due to assuming that private=public #43
Use of deprecated implicit copy constructor #42
Printing attribute names #39
dumping a small number_float just outputs 0.000000 #37
find is error #32
Avoid using spaces when encoding without pretty print #31
Cannot encode long numbers #30
segmentation fault when iterating over empty arrays/objects #28
Creating an empty array #27
Custom allocator support #25
make the type of the used string container customizable #20
Improper parsing of JSON string “\” #17
create a header-only version #16
Don't return “const values” #15
Add to_string overload for indentation #13
string parser does not recognize uncompliant strings #12
possible double-free in find function #11
UTF-8 encoding/deconding/testing #10
move code into namespace #9
free functions for explicit objects and arrays in initializer lists #8
unique_ptr for ownership #7
Add unit tests #4
Drop C++98 support #3
Test case coverage #2
Runtime error in Travis job #1
Keyword ‘inline’ is useless when member functions are defined in headers #87 (ahamez)
Replace default_callback
function with nullptr
and check for null… #72 (aburgh)
Fix performance regression introduced with the parsing callback feature. #69 (aburgh)
Improve the implementations of the comparission-operators #63 (Florianjw)
Added a remark to the readme that coverage is GCC only for now #23 (Teemperor)
Implemented the JSON spec for string parsing for everything but the \uXXXX escaping #21 (Teemperor)
add the std iterator typedefs to iterator and const_iterator #19 (kirkshoop)
Fix double delete on std::bad_alloc exception #14 (elliotgoodrich)
* This Changelog was automatically generated by github_changelog_generator