nlohmann.json 3.9.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package nlohmann.json --version 3.9.0
NuGet\Install-Package nlohmann.json -Version 3.9.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nlohmann.json" Version="3.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add nlohmann.json --version 3.9.0
#r "nuget: nlohmann.json, 3.9.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install nlohmann.json as a Cake Addin
#addin nuget:?package=nlohmann.json&version=3.9.0

// Install nlohmann.json as a Cake Tool
#tool nuget:?package=nlohmann.json&version=3.9.0

JSON for Modern C++

Product Compatible and additional computed target framework versions.
native native is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on nlohmann.json:

Package Downloads
SiddiqSoft.restcl

Focussed REST Client for modern C++

SiddiqSoft.CosmosClient

Azure Cosmos REST-API Client for Modern C++

SiddiqSoft.sip2json

SIP Parser for Modern C++

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on nlohmann.json:

Repository Stars
Azure-Samples/cognitive-services-speech-sdk
Sample code for the Microsoft Cognitive Services Speech SDK
Version Downloads Last updated
3.11.2 64,858 8/13/2022
3.11.1 21,543 8/3/2022
3.11.0 435 8/3/2022
3.10.5 45,323 5/8/2022
3.10.4 67,414 10/31/2021
3.10.3 506 10/31/2021
3.10.2 11,040 9/7/2021
3.10.1 3,222 8/24/2021
3.10.0 32,273 8/18/2021
3.9.1 50,475 8/11/2020
3.9.0 2,857 7/27/2020
3.8.0 587 7/24/2020
3.7.3 33,173 11/25/2019
3.7.2 756 11/25/2019
3.7.1 609 11/25/2019
3.7.0 165,820 8/7/2019
3.6.1 11,423 3/21/2019
3.6.0 647 3/21/2019
3.5.0 100,950 1/7/2019
3.4.0 727 1/7/2019
3.3.0 751 1/7/2019
3.2.0 2,888 9/28/2018

JSON for Modern C++ 3.9.0 is a feature release that adds four long-awaited features, some requested five years ago.

The parser functions have now an option to ignore // and /* */ style comments. Though comments are not officially part of the JSON specification, comment support was a frequently requested feature, and its implementation was much less effort than continuously explaining the lack of comment support.

The second-most requested feature was a way to preserve the insertion order of object keys. Though this was possible via template specialization for a while, we now added a new type nlohmann::ordered_json as drop-in replacement for nlohmann::json for this.

To circumvent unexpected behavior, implicit conversions can now be switched off with a CMake or preprocessor option.

Last, but not least, a mapping between user-defined types and JSON can now be expressed using convenience macros by just listing the names of the member variables to read/write.

All changes are backward-compatible. See below the complete list of changes.

https://github.com/nlohmann/json/releases/tag/v3.8.0

💰 Note you can support this project via [GitHub sponsors](https://github.com/sponsors/nlohmann) or [PayPal](http://paypal.me/nlohmann).