nlohmann/json
Some data may be outdated — see provenance labels.
JSON for Modern C++ observed · 2026-09-23
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4856
- days_rel: 557
- days_push: 28
- n_releases_24m: 1
Adoption not part of the score
50656 stars · 7505 forks observed · 2026-09-23
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-21, confidence 0.97
nlohmann/json is a header‑only C++ library that provides a simple, modern API for parsing, generating, and manipulating JSON data. It also supports binary JSON formats like CBOR, MessagePack, BSON, and UBJSON.
Use cases
- Parse JSON strings or files into C++ objects
- Serialize C++ structs and STL containers to JSON
- Use JSON Pointer to access deep values in a document
- Apply JSON Patch or Merge Patch to modify JSON data
- Encode JSON data to compact binary formats such as CBOR or MessagePack
- Convert custom C++ types to/from JSON with to_json/from_json overloads
- Read and write JSON Lines streams for log processing
When to choose
- You need a lightweight, header‑only solution that works with modern C++ (C++11/14/17).
- Your project requires easy integration with STL containers and custom types.
- You want built‑in support for JSON Pointer, Patch, and several binary JSON formats.
- Cross‑platform compatibility (Linux, macOS, Windows) without external dependencies is important.
When to avoid
- You need runtime reflection or code generation for JSON binding beyond simple overloads.
- Maximum performance is critical and a hand‑optimized parser is required.
- You are working in a language other than C++ or need a non‑header‑only library.
Facets
library · maturity active
serialization parser json web-development backend cpp cross-platform modern-cpp header-only c++17 json-pointer json-patch binary-serialization binary-formats data-engineering
10 sources
- readme: https://github.com/nlohmann/json · fetched 2026-09-23 · 5599c2ccae7b
- homepage: https://json.nlohmann.me · fetched 2026-09-07 · 8f732461812b
- site_page: https://json.nlohmann.me/features/ · fetched 2026-08-28 · e4ad9ef7b1c0
- site_page: https://json.nlohmann.me/features/arbitrary_types/ · fetched 2026-08-28 · 6fceb60563f4
- site_page: https://json.nlohmann.me/features/binary_formats/ · fetched 2026-08-28 · e3f478842697
- site_page: https://json.nlohmann.me/features/binary_formats/bjdata/ · fetched 2026-08-28 · dcbec842d3ed
- site_page: https://json.nlohmann.me/features/binary_formats/bson/ · fetched 2026-08-28 · d573d957b2ee
- site_page: https://json.nlohmann.me/features · fetched 2026-09-07 · 55a1426e1204
- site_page: https://json.nlohmann.me/features/arbitrary_types · fetched 2026-09-07 · 4c782ca642e6
- site_page: https://json.nlohmann.me/features/binary_formats · fetched 2026-09-07 · c184ebbf9d77
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nlohmann/json | main | 66 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem