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 (2)

Showing the top 2 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
SamsidParty/TopNotify
The Ultimate Notification Customization Tool For Windows
Version Downloads Last updated
3.11.2 113,937 8/13/2022
3.11.1 27,556 8/3/2022
3.11.0 615 8/3/2022
3.10.5 58,019 5/8/2022
3.10.4 70,739 10/31/2021
3.10.3 541 10/31/2021
3.10.2 12,946 9/7/2021
3.10.1 3,867 8/24/2021
3.10.0 33,380 8/18/2021
3.9.1 61,692 8/11/2020
3.9.0 3,037 7/27/2020
3.8.0 629 7/24/2020
3.7.3 39,914 11/25/2019
3.7.2 786 11/25/2019
3.7.1 642 11/25/2019
3.7.0 204,353 8/7/2019
3.6.1 13,782 3/21/2019
3.6.0 677 3/21/2019
3.5.0 101,090 1/7/2019
3.4.0 759 1/7/2019
3.3.0 781 1/7/2019
3.2.0 3,560 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).