All Versions
37
Latest Version
Avg Release Cycle
74 days
Latest Release
62 days ago

Changelog History
Page 1

  • v3.10.2 Changes

    August 26, 2021

    Full Changelog

    • Annoying -Wundef on new JSON_DIAGNOSTICS macro #2975
    • += issue with multiple redirection. #2970
    • "incomplete type β€˜nlohmann::detail::wide_string_input_helper" compilation error #2969

    • πŸ›  Fix -Wunused warnings on JSON_DIAGNOSTICS #2976 (gcerretani)

  • v3.10.1 Changes

    August 24, 2021

    Full Changelog

    • 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

    • πŸ›  Fixed typo in docs/api/basic_json/parse.md #2968 (mb0202)

    • βž• Add link to Homebrew package #2966 (nlohmann)

    • πŸ›  Fix parent update for diagnostics with ordered_json #2963 (nlohmann)

    • βœ… Set stack size for some unit tests when using MSVC #2961 (nlohmann)

    • βž• Add regression test #2960 (nlohmann)

    • ⚑️ Update Travis badge #2959 (nlohmann)

    • πŸ›  Fix some extra ";" clang warnings #2957 (Hallot)

    • βž• Add documentation for integration via vcpkg #2954 (nlohmann)

    • πŸ— Avoid duplicate AppVeyor builds #2952 (nlohmann)

    • 🚨 fix gdb_pretty_printer failure on basic types #2950 (senyai)

    • βž• Add header to use value_t #2948 (nlohmann)

    • βœ… Skip some tests if JSON_Install is not set #2947 (nlohmann)

    • βœ‚ Remove outdated json_unit test binary #2945 (nlohmann)

    • ⚑️ Updating the Homebrew Command #2943 (amirmasoudabdol)

  • v3.10.0 Changes

    August 17, 2021

    Full Changelog

    • βœ… 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
    • 0️⃣ 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 nulls #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

    • ⚠ Overwork warning flags #2936 (nlohmann)

    • ⚠ Treat MSVC warnings as errors #2930 (nlohmann)

    • ⚠ All: fix warnings when compiling with -Wswitch-enum #2927 (fhuberts)

    • Guard GCC pragmas #2925 (nlohmann)

    • Supress -Wfloat-equal on intended float comparisions #2911 (Finkman)

    • πŸ›  Fix binary subtypes #2908 (nlohmann)

    • πŸ›  Fix useless-cast warnings #2902 (nlohmann)

    • βž• Add regression test #2898 (nlohmann)

    • ♻️ Refactor Unicode tests #2889 (nlohmann)

    • CMake cleanup #2885 (nlohmann)

    • Avoid string in case of empty CBOR objects #2879 (nlohmann)

    • ⚠ Suppress C4127 warning in unit-json_pointer.cpp #2875 (nlohmann)

    • πŸ›  Fix truncation warning #2874 (nlohmann)

    • πŸ›  Fix memory leak in to_json #2872 (nlohmann)

    • πŸ›  Fix assertion failure in diagnostics #2866 (nlohmann)

    • πŸ“š Update documentation #2861 (nlohmann)

    • Consistency with using in README.md #2826 (justanotheranonymoususer)

    • Properly constrain the basic_json conversion operator #2825 (ldionne)

    • πŸ›  Fix CI #2817 (nlohmann)

    • βœ… Specified git branch for google benchmark fetch in benchmark test #2795 (grafail)

    • βž• Add C++ standards to macOS matrix #2790 (nlohmann)

    • ⚑️ Update URLs to HTTPS #2789 (TotalCaesar659)

    • πŸ”— Link to Conan Center package added #2771 (offa)

    • Keep consistent formatting #2770 (jasmcaus)

    • 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)

    • πŸ“š Update documentation #2749 (nlohmann)

    • βž• Add documentation for numbers #2747 (nlohmann)

    • πŸ‘· Use Clang 12 in CI #2737 (nlohmann)

    • πŸ›  Fixes #2730 #2731 (theShmoo)

    • Possibility to use without the dependency to file io and streams to use in intel sgx enclaves #2729 (theShmoo)

    • ⚑️ Update json.hpp #2707 (raduteo)

    • pkg-config.pc.in: Don't concatenate paths #2690 (doronbehar)

    • βž• add more CI steps #2689 (nlohmann)

    • ⚑️ Update doctest from 2.4.4 to 2.4.6 (fixes #2686) #2687 (musicinmybrain)

    • License fix #2683 (nlohmann)

    • πŸ“œ 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)

    • πŸ›  Fix missing 1.78 in example in README.md #2625 (wawiesel)

    • βž• Add GDB pretty printer #2607 (nlohmann)

    • readme: fix tilde character display #2582 (bl-ue)

    • βž• Add support for deserialization of STL containers of non-default constructable types (fixes #2574). #2576 (AnthonyVH)

    • πŸ‘ Better diagnostics #2562 (nlohmann)

    • CI targets #2561 (nlohmann)

    • βž• Add switch to skip non-reproducible tests. #2560 (nlohmann)

    • πŸ›  Fix compilation of input_adapter(container) in edge cases #2553 (jasujm)

    • πŸ‘ Allow parsing from std::byte containers #2550 (nlohmann)

    • βœ… Travis doesn't run any tests in C++17 mode #2540 (karzhenkov)

    • ⚑️ Doctest is updated to v2.4.3 #2538 (YarikTH)

    • πŸ›  Fix warnings #2537 (nlohmann)

    • πŸ›  Fix a shadowing warning #2536 (nlohmann)

    • Clarify license of is_complete_type implementation #2534 (nlohmann)

    • Do not unconditionally redefine C++14 constructs #2533 (nlohmann)

    • ⚑️ Doctest is updated to v2.4.1 #2525 (YarikTH)

    • βž• Add MAIN_PROJECT check for test and install options #2514 (globberwops)

    • βœ… Ranged insert test section is added in unit-ordered_json.cpp #2512 (YarikTH)

    • βž• Add asserts to suppress C28020 #2447 (jbzdarkid)

    • Change argument name "subtype" in byte_container_with_subtype #2444 (linev)

    • πŸ“ add CPM.Cmake example #2406 (leozz37)

    • πŸ›  Fix move constructor of json_ref #2405 (karzhenkov)

    • πŸš€ Properly select "Release" build for Travis #2375 (karzhenkov)

    • ⚑️ Update Hedley #2367 (nlohmann)

    • πŸ›  Fix and extend documentation of discarded values #2363 (nlohmann)

    • πŸ›  Fix typos in documentation #2354 (rbuch)

    • βœ‚ Remove "#define private public" from tests #2352 (nlohmann)

    • βœ‚ Remove -Wimplicit-fallthrough warning #2349 (nlohmann)

    • πŸ›  Fix code to work without exceptions #2347 (nlohmann)

    • πŸ›  fix cmake script overwriting compiler path #2344 (ongjunjie)

  • v3.9.1 Changes

    August 06, 2020

    πŸš€ Release date: 2020-08-06
    SHA-256: 7804b38146921d03374549c9e2a5e3acda097814c43caf2b96a0278e58df26e0 (json.hpp), 6bea5877b1541d353bd77bdfbdb2696333ae5ed8f9e8cc22df657192218cad91 (include.zip)

    Summary

    This release fixes two bugs in the features introduced in release 3.9.0. The lexer did not accept consecutive comments , and ordered_json lacked some functions from json. All changes are backward-compatible.

    πŸ‘Œ πŸ’° Note you can support this project via GitHub sponsors or PayPal.

    🍱 πŸ› Bug Fixes

    • The lexer did not accept input with two or more consecutive comments (e.g. /* one */ /* two */ []). #2330 #2332
    • The newly introduced ordered_json container did not implement the complete interface of basic_json which broke existing code when json was replaced by ordered_json, in particular when trying to call ordered_json::parse. #2315 #2319 #2331

    🍱 πŸ”¨ Further Changes

    • Install pkg-config file to CMAKE_CURRENT_BINARY_DIR instead of CMAKE_BINARY_DIR #2318
    • Make installation directory of pkg-config file depend on CMAKE_INSTALL_LIBDIR. #2314
    • πŸ›  Fix -Wimplicit-fallthrough warning. #2333
    • πŸ›  Fix name of Homebrew formula in documentation. #2326 #2327
    • πŸ›  Fix typo in documentation. #2320

    🍱 πŸ”₯ Deprecated functions

    🚚 The following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., 4.0.0):

    πŸ—„ All deprecations are annotated with HEDLEY_DEPRECATED_FOR to report which function to use instead.

  • v3.9.0 Changes

    July 27, 2020

    Full Changelog

    • 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
    • 0️⃣ 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

    • πŸ“š Update documentation #2312 (nlohmann)

    • πŸ›  Fix bug in CBOR tag handling #2308 (nlohmann)

    • added inline to NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE macro #2306 (jwittbrodt)

    • πŸ›  fixes unused variable 'ex' for #2304 #2305 (AODQ)

    • Cleanup #2303 (nlohmann)

    • βž• Add test with multiple translation units #2301 (nlohmann)

    • πŸ”€ Merge GitHub actions #2300 (nlohmann)

    • πŸ›  Fix unused parameter #2299 (nlohmann)

    • βž• Add support for high-precision numbers in UBJSON encoding #2297 (nlohmann)

    • fix eof for get_binary and get_string #2294 (jprochazk)

    • Serialisation macros: increase upper bound on number of member variables #2287 (pfeatherstone)

    • βž• add inline specifier for detail::combine #2285 (T0b1-iOS)

    • βž• Add static assertion for missing binary function in SAX interface #2282 (nlohmann)

    • Add test for target_include_directories #2279 (nlohmann)

    • πŸ‘• Clean up maintainer Makefiles and fix some linter warnings #2274 (nlohmann)

    • βž• Add option to ignore CBOR tags #2273 (nlohmann)

    • Hash function without allocation #2269 (nlohmann)

    • βž• Add ClangCL for MSVC #2268 (t-b)

    • πŸ‘‰ Makefile: Always use SED variable #2264 (t-b)

    • βž• Add Xcode 12 CI #2262 (nlohmann)

    • 🏁 Make library work with Clang on Windows #2259 (nlohmann)

    • βž• Add ordered_json specialization with ordered object keys #2258 (nlohmann)

    • βž• Add pkg-config file #2253 (ericonr)

    • πŸ›  Fix regression from #2181 #2251 (nlohmann)

    • 🏷 Tag binary values in cbor if set #2244 (matthewbauer)

    • πŸ”§ Make assert configurable via JSON_ASSERT #2242 (nlohmann)

    • βž• Add specialization of get_to #2233 (nlohmann)

    • πŸ“š Refine documentation of error_handler parameter #2232 (nlohmann)

    • Simplify conversion from/to custom types #2225 (nlohmann)

    • βœ‚ Remove unused typedefs #2224 (nlohmann)

    • Enable CMake policy CMP0077 #2222 (alexreinking)

    • βž• Add option to ignore comments in parse/accept functions #2212 (nlohmann)

    • πŸ›  Fix Clang-Tidy warnings #2211 (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)

    • Fix consistency in function int_to_string() #2193 (dota17)

    • πŸ›  Fix issue#1275 #2181 (dota17)

    • πŸ‘ C++20 support by removing swap specialization #2176 (gracicot)

    • Feat/explicit conversion operator #1559 (theodelrieu)

  • v3.8.0 Changes

    June 14, 2020

    Full Changelog

    • 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
    • 0️⃣ 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
    • 0️⃣ 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

    • Improve parse_ubjson_fuzzer #2182 (tanuj208)

    • βž• Add input adapter tests #2178 (nlohmann)

    • πŸ›  Fix warnings #2174 (nlohmann)

    • πŸ›  Fix PR#1006 #2158 (dota17)

    • πŸ›  Fix issue#1972 #2153 (dota17)

    • ⚑️ 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)

    • πŸ›  Fix issue 2112 #2137 (dota17)

    • βž• Add bleeding edge GCC to CI #2136 (aokellermann)

    • Clean up implementation of binary type #2125 (nlohmann)

    • πŸ›  Fixed a compilation error in MSVC #2121 (gistrec)

    • πŸ‘· Overwork CI #2119 (nlohmann)

    • πŸ›  Fix warnings from Clang 10 and GCC 9 #2116 (nlohmann)

    • Do not include <ciso646> when using C++17 #2115 (nlohmann)

    • πŸ›  Fix issue#2086: disallow json::value_t type parameter in value() #2104 (dota17)

    • πŸ›  Fix Coveralls integration #2100 (nlohmann)

    • βž• Add tests for binary values #2099 (nlohmann)

    • βœ… Use external test data #2081 (nlohmann)

    • βœ‚ Remove Doozer CI #2080 (nlohmann)

    • πŸ›  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)

    • πŸ›  Fix bug in diff function #2054 (nlohmann)

    • πŸ›  Fix GCC compiler warnings #2053 (nlohmann)

    • πŸ›  Fix Clang compiler warnings #2051 (nlohmann)

    • ⚑️ Update doctest to 2.3.7 #2050 (nlohmann)

    • πŸ›  Fix issue#1719 #2044 (dota17)

    • βž• Add missing testcase about NaN in unit-constructor1.cpp #2043 (dota17)

    • Templatize basic_json constructor from json_ref #2034 (ArtemSarmini)

    • πŸ—„ Replace deprecated std::is_pod #2033 (nlohmann)

    • Fixes #1971 (memory leak in basic_json::push_back) #2025 (ArtemSarmini)

    • πŸ›  fix #1982:json_pointer.contains() exception is incorrectly raised #2019 (dota17)

    • ⚑️ Update LICENSE.MIT #2010 (magamig)

    • βœ… PR for #2006 to test in AppVeyor. #2008 (garethsb)

    • βž• Added wsjcpp.yml #2004 (sea-kg)

    • πŸ›  fix error 'setw' is not a member of 'std' in Wandbox example #2002 (alexandermyasnikov)

    • catch exceptions for json_pointer : ..../+99 #1990 (dota17)

    • Modify the document about operator== #1984 (dota17)

    • Rename argument array_index to array_indx in json_pointer methods #1980 (linev)

    • README: Fix string representation of dumped json #1979 (alex-weej)

    • πŸ›  fix warnings in serializer.hpp for VS2019 #1969 (dota17)

    • πŸ›  Fix C26451 warnnings in to_chars.hpp #1967 (dota17)

    • appveyor.yml: Compile and test with latest version for __cplusplus ma… #1958 (t-b)

    • πŸ›  Fix typo in examples #1956 (dota17)

    • templated input adapters #1950 (FrancoisChabot)

    • πŸš€ Update README.md : add a FAQ about memory release #1933 (dota17)

    • ✏️ Some typos #1923 (Coeur)

    • πŸ›  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)

    • πŸ›  Fix msvc warnings #1846 (MBalszun)

    • ⚑️ 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)

  • v3.7.3 Changes

    November 17, 2019

    πŸš€ Release date: 2019-11-17
    SHA-256: 3b5d2b8f8282b80557091514d8ab97e27f9574336c804ee666fda673a9b59926 (json.hpp), 87b5884741427220d3a33df1363ae0e8b898099fbc59f1c451113f6732891014 (include.zip)

    Summary

    πŸš€ This release fixes a bug introduced in release 3.7.2 which could yield quadratic complexity in destructor calls. All changes are backward-compatible.

    🍱 πŸ› Bug Fixes

    • βœ‚ Removed reserve() calls from the destructor which could lead to quadratic complexity. #1837 #1838

    🍱 πŸ”₯ Deprecated functions

    πŸš€ This release does not deprecate any functions. As an overview, the following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., 4.0.0):

  • v3.7.2 Changes

    November 10, 2019

    πŸš€ Release date: 2019-11-10
    SHA-256: 0a65fcbbe1b334d3f45c9498e5ee28c3f3b2428aea98557da4a3ff12f0f14ad6 (json.hpp), 67f69c9a93b7fa0612dc1b6273119d2c560317333581845f358aaa68bff8f087 (include.zip)

    Summary

    Project bad_json_parsers tested how JSON parser libraries react on deeply nested inputs. It turns out that this library segfaulted at a certain nesting depth. This bug was fixed with this release. Now the parsing is only bounded by the available memory. All changes are backward-compatible.

    🍱 πŸ› Bug Fixes

    • πŸ›  Fixed a bug that lead to stack overflow for deeply nested JSON values (objects, array) by changing the implementation of the destructor from a recursive to an iterative approach. #832, #1419, #1835

    🍱 πŸ”¨ Further Changes

    • βž• Added WhiteStone Bolt. #1830

    🍱 πŸ”₯ Deprecated functions

    πŸš€ This release does not deprecate any functions. As an overview, the following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., 4.0.0):

  • v3.7.1 Changes

    November 06, 2019

    Full Changelog

    • 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
    • πŸ“œ Parsing string into json doesn't preserve the order correctly. #1817
    • 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
    • How can I save json object in file in order? #1717
    • πŸ“œ 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 for #1647 #1821 (AnthonyVH)

    • πŸ›  Fix issue #1805 #1806 (cbegue)

    • πŸ›  Fix some spelling errors - mostly in comments & documentation. #1803 (flopp)

    • ⚑️ Update Hedley to v11. #1799 (nemequ)

    • iteration_proxy: Fix integer truncation from std::size_t to int #1797 (t-b)

    • πŸ‘ appveyor.yml: Add MSVC 16 2019 support #1780 (t-b)

    • βœ… test/CMakeLists.txt: Use an explicit list instead of GLOB #1779 (t-b)

    • πŸ‘‰ Make json_pointer::back const (resolves #1764) #1769 (chris0x44)

    • did you mean 'serialization'? #1767 (0xflotus)

    • πŸ‘ Allow items() to be used with custom string #1765 (crazyjul)

    • πŸ›  Cppcheck fixes #1760 (Xav83)

    • πŸ›  Fix and add test's for SFINAE problem #1741 (tete17)

    • πŸ›  Fix clang sanitizer invocation #1728 (t-b)

    • βž• Add gcc 9 and compile with experimental C++20 support #1724 (t-b)

    • πŸ›  Fix int64 min issue #1722 (t-b)

    • πŸš€ release: add singleinclude and meson.build to include.zip #1694 (eli-schwartz)

  • v3.7.0 Changes

    July 28, 2019

    Full Changelog

    • 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
    • 0️⃣ 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
    • unflatten vs objects with number-ish keys #1575
    • πŸ“œ JSON Parse Out of Range Error #1574
    • Integrating into existing CMake Project #1573
    • πŸš€ A "thinner" source code tar as part of release? #1572
    • 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 std::string_view as the json_key to "operator []" ? #1529
    • 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
    • πŸ“œ How to get position info or parser context with custom from_json() that may throw exceptions? #1508
    • 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
    • 🐎 Substantial performance penalty caused by polymorphic input adapter #1457
    • Null bytes in files are treated like EOF #1095
    • πŸ”‹ Feature: to_string(const json& j); #916

    • πŸ‘‰ Use GNUInstallDirs instead of hard-coded path. #1673 (remyabel)

    • πŸ“¦ Package Manager: MSYS2 (pacman) #1670 (podsvirov)

    • πŸ›  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)

    • πŸ›  Minor fixes in docs #1625 (nickaein)

    • πŸ›  Fix broken links to documentation #1598 (nickaein)

    • βž• Added to_string and added basic tests #1585 (Macr0Nerd)

    • βœ… Regression tests for MSVC #1570 (nickaein)

    • πŸ›  Fix/1511 #1555 (theodelrieu)

    • βœ‚ Remove C++17 extension warning from clang; #1535 #1551 (heavywatal)

    • 🚚 moved from Catch to doctest for unit tests #1439 (onqtam)