Back to the chart

nlohmann/json

Single-header JSON library for modern C++

Chart
Not on a chart right now
Stars
50.9k

Open on GitHubHomepage

What it is

This C++11 library lets developers work with JSON as if it were a first-class data type. It consists of a single header file, json.hpp, requiring no external dependencies or complex build system setup.

Who it is for

C++ developers who want to add JSON parsing and serialization with minimal integration effort.

Why it is trending

It stands out for its trivial single-header integration, 100% unit test coverage, and continuous fuzz testing via Google OSS-Fuzz.

Main features

  • Single-header integration via json.hpp with no dependencies
  • Intuitive C++11 syntax with STL-like container access
  • Support for JSON Pointer, JSON Patch, and JSON Merge Patch
  • Binary format support including BSON, CBOR, MessagePack, and UBJSON

Summarized on November 19, 2026 from the README and repository data. It can be wrong; check the source before relying on it. Report a wrong summary