Lines Matching +full:cpp +full:- +full:coveralls
7 [](http…
8 …tps://scan.coverity.com/projects/5550/badge.svg)](https://scan.coverity.com/projects/nlohmann-json)
10 [](https://cirrus-ci.com/github/nlo…
11 … Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/json.svg)](https://bugs.chromiu…
12 [](https://wandbox.org/permlink/1mp1…
13 [](https://json.nlohmann.me)
14 [](https://raw.githubuserconten…
16 [](https://vcpkg.link/ports/nlohmann-…
17 …ging status](https://repology.org/badge/tiny-repos/nlohmann-json.svg)](https://repology.org/projec…
22 [](https://github.com/sponso…
26 - [Design goals](#design-goals)
27 - [Sponsors](#sponsors)
28 - [Support](#support) ([documentation](https://json.nlohmann.me), [FAQ](https://json.nlohmann.me/ho…
29 - [Examples](#examples)
30 - [Read JSON from a file](#read-json-from-a-file)
31 - [Creating `json` objects from JSON literals](#creating-json-objects-from-json-literals)
32 - [JSON as first-class data type](#json-as-first-class-data-type)
33 - [Serialization / Deserialization](#serialization--deserialization)
34 - [STL-like access](#stl-like-access)
35 - [Conversion from STL containers](#conversion-from-stl-containers)
36 - [JSON Pointer and JSON Patch](#json-pointer-and-json-patch)
37 - [JSON Merge Patch](#json-merge-patch)
38 - [Implicit conversions](#implicit-conversions)
39 - [Conversions to/from arbitrary types](#arbitrary-types-conversions)
40 - [Specializing enum conversion](#specializing-enum-conversion)
41 …- [Binary formats (BSON, CBOR, MessagePack, UBJSON, and BJData)](#binary-formats-bson-cbor-message…
42 - [Supported compilers](#supported-compilers)
43 - [Integration](#integration)
44 - [CMake](#cmake)
45 - [Package Managers](#package-managers)
46 - [Pkg-config](#pkg-config)
47 - [License](#license)
48 - [Contact](#contact)
49 - [Thanks](#thanks)
50 - [Used third-party tools](#used-third-party-tools)
51 - [Projects using JSON for Modern C++](#projects-using-json-for-modern-c)
52 - [Notes](#notes)
53 - [Execute unit tests](#execute-unit-tests)
59 - **Intuitive syntax**. In languages such as Python, JSON feels like a first class data type. We us…
61 - **Trivial integration**. Our whole code consists of a single header file [`json.hpp`](https://git…
63 - **Serious testing**. Our code is heavily [unit-tested](https://github.com/nlohmann/json/tree/deve…
67 - **Memory efficiency**. Each JSON object has an overhead of one pointer (the maximal size of a uni…
69 - **Speed**. There are certainly [faster JSON libraries](https://github.com/miloyip/nativejson-benc…
71 …(https://github.com/nlohmann/json/blob/master/.github/CONTRIBUTING.md#please-dont) for more inform…
80 …://upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Codacy-logo-black.svg/320px-Codacy-logo-black…
84 - [Michael Hartmann](https://github.com/reFX-Mike)
85 - [Stefan Hagen](https://github.com/sthagen)
86 - [Steve Sperandeo](https://github.com/homer6)
87 - [Robert Jefe Lindstädt](https://github.com/eljefedelrodeodeljefe)
88 - [Steve Wagner](https://github.com/ciroque)
89 - [Lion Yang](https://github.com/LionNatsu)
95 …) or the [**Q&A**](https://github.com/nlohmann/json/discussions/categories/q-a) section. If not, p…
103 There is also a [**docset**](https://github.com/Kapeli/Dash-User-Contributions/tree/master/docsets/…
114 …ce/) function has a matching [emplace.cpp](https://github.com/nlohmann/json/blob/develop/docs/exam…
120 ```cpp
133 Assume you want to create hard-code this literal JSON value in a file, as a `json` object:
144 ```cpp
153 // Using user-defined (raw) string literals
169 ### JSON as first-class data type
194 ```cpp
238 ```cpp
256 ```cpp
278 ```cpp
285 ```cpp
300 ```cpp
321 Note the library only supports UTF-8. When you store strings with different encodings in the librar…
327 ```cpp
341 ```cpp
356 … integral type of 1, 2 or 4 bytes, which will be interpreted as UTF-8, UTF-16 and UTF-32 respectiv…
358 ```cpp
365 ```cpp
374 ```cpp
419 The library uses a SAX-like interface with the following functions:
421 ```cpp
432 // called when a floating-point number is parsed; value and original string is passed
440 // called when an object or array begins or ends, resp. The number of elements is passed (or -1 if …
460 … `json` value - it is up to you to decide what to do with the SAX events. Furthermore, no exceptio…
462 ### STL-like access
464 …, it satisfies the [**ReversibleContainer**](https://en.cppreference.com/w/cpp/named_req/Reversibl…
466 ```cpp
481 // range-based for
555 ```cpp
593 Likewise, any associative key-value containers (`std::map`, `std::multimap`, `std::unordered_map`, …
595 ```cpp
615 …tf.org/html/rfc6902)) allows describing differences between two JSON values - effectively allowing…
617 ```cpp
655 ```cpp
691 ```cpp
724 ```cpp
734 ```cpp
764 ```cpp
768 // conversion: person -> json
774 // conversion: json -> person
785 ```cpp
808 …our_type` **MUST** be [DefaultConstructible](https://en.cppreference.com/w/cpp/named_req/DefaultCo…
818 - `NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(name, member1, member2, ...)` is to be defined inside the nam…
819 - `NLOHMANN_DEFINE_TYPE_INTRUSIVE(name, member1, member2, ...)` is to be defined inside the class/s…
827 ```cpp
835 ```cpp
849 #### How do I convert third-party types?
854 …is `nlohmann::adl_serializer` (ADL means [Argument-Dependent Lookup](https://en.cppreference.com/w…
858 ```cpp
875 ```cpp
901 #### How can I use `get()` for non-default constructible/non-copyable types?
903 There is a way, if your type is [MoveConstructible](https://en.cppreference.com/w/cpp/named_req/Mov…
905 ```cpp
936 …u might want to take a look at [`unit-udt.cpp`](https://github.com/nlohmann/json/blob/develop/test…
940 - use a different `basic_json` alias than `nlohmann::json` (the last template parameter of `basic_j…
941 - use your `basic_json` alias (or a template parameter) in all your `to_json`/`from_json` methods
942 - use `nlohmann::to_json` and `nlohmann::from_json` when you need ADL
946 ```cpp
948 // if you don't need compile-time checks on T
970 ```cpp
992 …esired behavior. If an enum is modified or re-ordered after data has been serialized to JSON, the …
996 ```cpp
1002 TS_INVALID=-1,
1018 ```cpp
1032 Just as in [Arbitrary Type Conversions](#arbitrary-types-conversions) above,
1033 - `NLOHMANN_JSON_SERIALIZE_ENUM()` MUST be declared in your enum type's namespace (which can be the…
1034 - It MUST be available (e.g., proper headers must be included) everywhere you use the conversions.
1037 - When using `template get<ENUM_TYPE>()`, undefined JSON values will default to the first pair spec…
1038 - If an enum or JSON value is specified more than once in your map, the first matching occurrence f…
1044 ```cpp
1083 ```cpp
1116 - GCC 4.8 - 12.0 (and possibly later)
1117 - Clang 3.4 - 15.0 (and possibly later)
1118 - Apple Clang 9.1 - 13.1 (and possibly later)
1119 - Intel C++ Compiler 17.0.2 (and possibly later)
1120 - Nvidia CUDA Compiler 11.0.221 (and possibly later)
1121 - Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later)
1122 - Microsoft Visual C++ 2017 / Build Tools 15.5.180.51428 (and possibly later)
1123 - Microsoft Visual C++ 2019 / Build Tools 16.3.1+1def00d3d (and possibly later)
1124 - Microsoft Visual C++ 2022 / Build Tools 19.30.30709.0 (and possibly later)
1130 - GCC 4.8 has a bug [57824](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57824)): multiline raw str…
1131 - Android defaults to using very old compilers and C++ libraries. To fix this, add the following to…
1136 APP_CPPFLAGS += -frtti -fexceptions
1139 …ndroid NDK](https://developer.android.com/ndk/index.html?hl=ml), Revision 9 - 11 (and possibly lat…
1141 - For GCC running on MinGW or Android SDK, the error `'to_string' is not a member of 'std'` (or sim…
1143 - Unsupported versions of GCC and Clang are rejected by `#error` directives. This can be switched o…
1145 …](https://ci.appveyor.com/project/nlohmann/json), [Cirrus CI](https://cirrus-ci.com/github/nlohman…
1148 |--------------------------------------------------------------------------------------------------…
1149 | Apple Clang 11.0.3 (clang-1103.0.32.62); Xcode 11.7 …
1150 | Apple Clang 12.0.0 (clang-1200.0.32.29); Xcode 12.4 …
1151 | Apple Clang 12.0.5 (clang-1205.0.22.11); Xcode 12.5.1 …
1152 | Apple Clang 13.0.0 (clang-1300.0.29.3); Xcode 13.0 …
1153 | Apple Clang 13.0.0 (clang-1300.0.29.3); Xcode 13.1 …
1154 | Apple Clang 13.0.0 (clang-1300.0.29.30); Xcode 13.2.1 …
1155 | Apple Clang 13.1.6 (clang-1316.0.21.2.3); Xcode 13.3.1 …
1156 | Apple Clang 13.1.6 (clang-1316.0.21.2.5); Xcode 13.4.1 …
1157 | Apple Clang 14.0.0 (clang-1400.0.29.102); Xcode 14.0 …
1158 | Apple Clang 14.0.0 (clang-1400.0.29.102); Xcode 14.0.1 …
1159 | Apple Clang 14.0.0 (clang-1400.0.29.202); Xcode 14.1 …
1172 | Clang 10.0.0 with GNU-like command-line …
1173 | Clang 11.0.0 with GNU-like command-line …
1174 | Clang 11.0.0 with MSVC-like command-line …
1177 | Clang 12.0.0 with GNU-like command-line …
1179 | Clang 13.0.0 with GNU-like command-line …
1181 | Clang 14.0.0 with GNU-like command-line …
1182 | Clang 15.0.0 with GNU-like command-line …
1184 | Clang 16.0.0 (16.0.0-++20221031071727+500876226c60-1~exp1~20221031071831.439) …
1185 | GCC 4.8.5 (Ubuntu 4.8.5-4ubuntu2) …
1190 | GCC 8.1.0 (i686-posix-dwarf-rev0, Built by MinGW-W64 project) …
1191 | GCC 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) …
1201 …1.7 (Build Engine version 14.0.25420.1) | Windows-6.3.9600 | AppVeyor…
1202 …35.0 (Build Engine version 15.9.21+g9802d43bc3 for .NET Framework) | Windows-10.0.14393 | AppVeyor…
1203 …12.0 (Build Engine version 16.9.0+57a23d249 for .NET Framework) | Windows-10.0.17763 | GitHub A…
1204 …12.0 (Build Engine version 16.9.0+57a23d249 for .NET Framework) | Windows-10.0.17763 | AppVeyor…
1205 …09.0 (Build Engine version 17.0.31804.368 for .NET Framework) | Windows-10.0.20348 | GitHub A…
1212 ```cpp
1219 to the files you want to process JSON and set the necessary switches to enable C++11 (e.g., `-std=c…
1221 …fwd.hpp) for forward-declarations. The installation of json_fwd.hpp (as part of cmake's install st…
1319 …-json` and you're set. If you want the bleeding edge rather than the latest release, use `brew ins…
1321 … tree as a [meson subproject](https://mesonbuild.com/Subprojects.html#using-a-subproject). You may…
1323 …-wide in which case a pkg-config file is installed. To use it, simply have your build system requi…
1327 … you want to use. Please file issues [here](https://github.com/conan-io/conan-center-index/issues)…
1329 …dencies, you can use the [`nlohmann-json` package](https://spack.readthedocs.io/en/latest/package_…
1331 If you are using [hunter](https://github.com/cpp-pm/hunter) on your project for external dependenci…
1333 …-pm/nlohmann-json`. Please file issues [here](https://github.com/buckaroo-pm/nlohmann-json). There…
1335 …nstall the [nlohmann-json package](https://github.com/Microsoft/vcpkg/tree/master/ports/nlohmann-j…
1337 …r version can be installed by adding the `-DJSON_MultipleHeaders=ON` flag (i.e., `cget install nlo…
1339 …cket.org/benman/nlohmann_json-cocoapod/src/master/)). Please file issues [here](https://bitbucket.…
1341 …package-manager/), you can use the library by adding a package dependency to this repository. And …
1343 …/issues/1132#issuecomment-452250255) on how to use the package. Please file issues [here](https://…
1345 …-forge/nlohmann_json-feedstock) from [conda-forge](https://conda-forge.org) executing `conda insta…
1347 …-w64-nlohmann-json](https://packages.msys2.org/base/mingw-w64-nlohmann-json) package, just type `p…
1349 …, execute `sudo port install nlohmann-json` to install the [nlohmann-json](https://ports.macports.…
1351 …-json`](https://cppget.org/nlohmann-json) package from the public repository https://cppget.org or…
1352 Please file issues [here](https://github.com/build2-packaging/nlohmann-json) if you experience prob…
1356 …). After [adding CPM script](https://github.com/TheLartians/CPM.cmake#adding-cpm) to your project,…
1365 ### Pkg-config
1367 If you are using bare Makefiles, you can use `pkg-config` to generate the include flags that point …
1370 pkg-config nlohmann_json --cflags
1373 …he Meson build system will also be able to use a system-wide library, which will be found by `pkg-…
1382 <img align="right" src="https://opensource.org/trademarks/opensource/OSI-Approved-License-100x137.p…
1386 Copyright © 2013-2022 [Niels Lohmann](https://nlohmann.me)
1396 …UTF-8 Decoder from Bjoern Hoehrmann which is licensed under the [MIT License](https://opensource.o…
1400 …tps://nemequ.github.io/hedley/) from Evan Nemerson which is licensed as [CC0-1.0](https://creative…
1402 …ps://github.com/abseil/abseil-cpp) which is licensed under the [Apache 2.0 License](https://openso…
1425 6. [Joshua C. Randall](https://github.com/jrandall) fixed a bug in the floating-point serialization.
1432 … hints and improvements. In particular, he pushed forward the implementation of user-defined types.
1435 16. [Daniel Frey](https://github.com/d-frey) cleaned up some pointers and implemented exception-saf…
1445 … array subscript operator, an issue that failed the MSVC build, and floating-point parsing/dumping…
1446 27. [Volker Diels-Grabsch](https://github.com/vog) fixed a link in the README file.
1447 28. [msm-](https://github.com/msm-) added support for American Fuzzy Lop.
1450 31. [Lv Zheng](https://github.com/lv-zheng) fixed a namespace issue with `int64_t` and `uint64_t`.
1459 40. [Thomas Braun](https://github.com/t-b) fixed a warning in a test case and adjusted MSVC calls i…
1460 …erator-range parsing](https://github.com/nlohmann/json/issues/290). He also implemented the magic …
1466 47. [Pierre-Antoine Lacaze](https://github.com/palacaze) found a subtle bug in the `dump()` functio…
1467 …cpp/locale/locale/classic) to avoid too much locale joggling, found some nice performance improvem…
1474 55. [gnzlbg](https://github.com/gnzlbg) supported the implementation of user-defined types.
1475 56. [Alexej Harm](https://github.com/qis) helped to get the user-defined types working with Visual …
1476 57. [Jared Grubb](https://github.com/jaredgrubb) supported the implementation of user-defined types.
1480 61. [rswanson-ihi](https://github.com/rswanson-ihi) noted a typo in the README.
1483 …noted a typo in the README, removed unnecessary bit arithmetic, and fixed some `-Weffc++` warnings.
1495 76. [dan-42](https://github.com/dan-42) cleaned up the CMake files to simplify including/reusing of…
1502 83. [Alex](https://github.com/leha-bot) noted an error in a code sample.
1516 97. [abolz](https://github.com/abolz) integrated the Grisu2 algorithm for proper floating-point for…
1520 101. [mark-99](https://github.com/mark-99) helped fixing an ICC error.
1533 114. [martin-mfg](https://github.com/martin-mfg) fixed a typo.
1539 120. [grembo](https://github.com/grembo) fixed the test suite and re-enabled several test cases.
1554 135. [julian-becker](https://github.com/julian-becker) added BSON support.
1559 140. [Manvendra Singh](https://github.com/manu-chroma) fixed a typo in the documentation.
1564 145. [Michael Behrns-Miller](https://github.com/moodboom) found an issue with a missing namespace.
1566 147. [Andreas Schwab](https://github.com/andreas-schwab) fixed the endian conversion.
1567 148. [Mark-Dunning](https://github.com/Mark-Dunning) fixed a warning in MSVC.
1568 149. [Gareth Sylvester-Bradley](https://github.com/garethsb-sony) added `operator/` for JSON Pointe…
1569 150. [John-Mark](https://github.com/johnmarkwayve) noted a missing header.
1576 157. [past-due](https://github.com/past-due) suppressed an unfixable warning.
1586 167. [yann-morin-1998](https://github.com/yann-morin-1998) helped to reduce the CMake requirement t…
1603 184. [Yuriy Vountesmery](https://github.com/ua-code-dragon) noted a subtle bug in a preprocessor ch…
1607 188. [Rainer](https://github.com/rvjr) proposed an improvement in the floating-point serialization …
1612 193. [Hubert Chathi](https://github.com/uhoreg) made CMake's version config file architecture-indep…
1615 196. [Evgenii Sopov](https://github.com/sea-kg) integrated the library to the wsjcpp package manage…
1618 199. [Gareth Sylvester-Bradley](https://github.com/garethsb-sony) fixed a compilation issue with MS…
1619 200. [Alexander “weej” Jones](https://github.com/alex-weej) fixed an example in the README.
1630 211. [Quentin Barbarat](https://github.com/quentin-dev) fixed an example in the documentation.
1638 219. [T0b1-iOS](https://github.com/T0b1-iOS) fixed a bug in the new hash implementation.
1641 222. [Érico Nogueira Rolim](https://github.com/ericonr) added support for pkg-config.
1655 236. [bl-ue](https://github.com/bl-ue) fixed some Markdown issues in the README file.
1661 242. [Doron Behar](https://github.com/doronbehar) fixed pkg-config.pc.
1665 246. [jpl-mac](https://github.com/jpl-mac) allowed to treat the library as a system header in CMake.
1672 253. [Finkman](https://github.com/Finkman) suppressed some `-Wfloat-equal` warnings.
1673 254. [Ferry Huberts](https://github.com/fhuberts) fixed `-Wswitch-enum` warnings.
1674 255. [Arseniy Terekhin](https://github.com/senyai) made the GDB pretty-printer robust against unset…
1675 …/github.com/amirmasoudabdol) updated the Homebrew command as nlohmann/json is now in homebrew-core.
1676 257. [Hallot](https://github.com/Hallot) fixed some `-Wextra-semi-stmt warnings`.
1677 258. [Giovanni Cerretani](https://github.com/gcerretani) fixed `-Wunused` warnings on `JSON_DIAGNOS…
1678 …ps://github.com/Kapeli) hosts the [docset](https://github.com/Kapeli/Dash-User-Contributions/tree/…
1685 266. [Daniel Albuschat](https://github.com/daniel-kun) corrected the parameter name in the `parse` …
1686 267. [Prince Mendiratta](https://github.com/Prince-Mendiratta) fixed a link to the FAQ.
1706 287. [NN](https://github.com/NN---) added the Visual Studio output directory to `.gitignore`.
1708 289. [Mike](https://github.com/Mike-Leo-Smith) fixed the `std::iterator_traits`.
1712 293. [Eli Schwartz](https://github.com/eli-schwartz) added more files to the `include.zip` archive.
1718 299. [kevin--](https://github.com/kevin--) added a note to an example in the README file.
1720 301. [Gregorio Litenstein](https://github.com/Lord-Kamina) fixed the Clang detection.
1729 310. [David Avedissian](https://github.com/dgavedissian) implemented SFINAE-friendly `iterator_trai…
1731 312. [Gareth Sylvester-Bradley](https://github.com/garethsb) added `operator/=` and `operator/` to …
1732 313. [Michael Macnair](https://github.com/mykter) added support for afl-fuzz testing.
1741 322. [Finkman](https://github.com/Finkman) fixed the debug pretty-printer.
1754 335. [HO-COOH](https://github.com/HO-COOH) fixed a parentheses in the documentation.
1758 339. [alferov](https://github.com/ALF-ONE) fixed a compilation error.
1759 340. [Craig Scott](https://github.com/craigscott-crascit) fixed a deprecation warning in CMake.
1760 341. [Vyacheslav Zhdanovskiy](https://github.com/ZeronSix) added macros for serialization-only type…
1770 ## Used third-party tools
1772 …. However, it is built, tested, documented, and whatnot using a lot of third-party tools and servi…
1774 - [**amalgamate.py - Amalgamate C source and header files**](https://github.com/edlund/amalgamate) …
1775 - [**American fuzzy lop**](https://lcamtuf.coredump.cx/afl/) for fuzz testing
1776 - [**AppVeyor**](https://www.appveyor.com) for [continuous integration](https://ci.appveyor.com/pro…
1777 - [**Artistic Style**](http://astyle.sourceforge.net) for automatic source code indentation
1778 - [**Clang**](https://clang.llvm.org) for compilation with code sanitizers
1779 - [**CMake**](https://cmake.org) for build automation
1780 - [**Codacy**](https://www.codacy.com) for further [code analysis](https://www.codacy.com/app/nlohm…
1781 - [**Coveralls**](https://coveralls.io) to measure [code coverage](https://coveralls.io/github/nloh…
1782 - [**Coverity Scan**](https://scan.coverity.com) for [static analysis](https://scan.coverity.com/pr…
1783 - [**cppcheck**](http://cppcheck.sourceforge.net) for static analysis
1784 - [**doctest**](https://github.com/onqtam/doctest) for the unit tests
1785 - [**git-update-ghpages**](https://github.com/rstacruz/git-update-ghpages) to upload the documentat…
1786 - [**GitHub Changelog Generator**](https://github.com/skywinder/github-changelog-generator) to gene…
1787 - [**Google Benchmark**](https://github.com/google/benchmark) to implement the benchmarks
1788 - [**Hedley**](https://nemequ.github.io/hedley/) to avoid re-inventing several compiler-agnostic fe…
1789 - [**lcov**](http://ltp.sourceforge.net/coverage/lcov.php) to process coverage information and crea…
1790 - [**libFuzzer**](https://llvm.org/docs/LibFuzzer.html) to implement fuzz testing for OSS-Fuzz
1791 - [**Material for MkDocs**](https://squidfunk.github.io/mkdocs-material/) for the style of the docu…
1792 - [**MkDocs**](https://www.mkdocs.org) for the documentation site
1793 - [**OSS-Fuzz**](https://github.com/google/oss-fuzz) for continuous fuzz testing of the library ([p…
1794 - [**Probot**](https://probot.github.io) for automating maintainer tasks such as closing stale issu…
1795 - [**Valgrind**](https://valgrind.org) to check for correct memory management
1800 The library is currently used in Apple macOS Sierra-Monterey and iOS 10-15. I am not sure what they…
1809 - Only **UTF-8** encoded input is supported which is the default encoding for JSON according to [RF…
1810 - `std::u16string` and `std::u32string` can be parsed, assuming UTF-16 and UTF-32 encoding, respect…
1811 - Other encodings such as Latin-1 or ISO 8859-1 are **not** supported and will yield parse or seria…
1812 - [Unicode noncharacters](https://www.unicode.org/faq/private_use.html#nonchar1) will not be replac…
1813 - Invalid surrogates (e.g., incomplete pairs such as `\uDEAD`) will yield parse errors.
1814 - The strings stored in the library are UTF-8 encoded. When using the default string type (`std::st…
1815 - When you store strings with different encodings in the library, calling [`dump()`](https://json.n…
1816 - To store wide strings (e.g., `std::wstring`), you need to convert them to a UTF-8 encoded `std::s…
1829 … of the Robustness Principle](https://tools.ietf.org/html/draft-iab-protocol-maintenance-01) on th…
1835 …s not preserve the **insertion order of object elements**. This is standards-compliant, as the [JS…
1837 …-map) ([integration](https://github.com/nlohmann/json/issues/546#issuecomment-304447518)) or [`nlo…
1850 - The code contains numerous debug **assertions** which can be switched off by defining the preproc…
1851 - As the exact number type is not defined in the [JSON specification](https://tools.ietf.org/html/r…
1852 - The code can be compiled without C++ **runtime type identification** features; that is, you can u…
1853 - **Exceptions** are used widely within the library. They can, however, be switched off with either…
1862 $ cmake .. -DJSON_BuildTests=On
1863 $ cmake --build .
1864 $ ctest --output-on-failure
1867 …download the files yourself and pass the directory with the test files via `-DJSON_TestDataDirecto…
1878 logged: Test data not found in 'json/cmake-build-debug/json_test_data'.
1880 See <https://github.com/nlohmann/json#execute-unit-tests> for more information.
1885 … Git, test `cmake_fetch_content_configure` will fail. Please execute `ctest -LE git_required` to s…
1887 …es and hence make the whole process not reproducible. Please execute `ctest -LE not_reproducible` …
1889 Note you need to call `cmake -LE "not_reproducible|git_required"` to exclude both labels. See [issu…
1891 …tation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/compiler-options/compiler…