lead · github
nlohmann/json: The C++ JSON Library That Just Works
A mature, header-only parser for C++ that handles JSON serialization without the friction. Built for backend developers who need reliable JSON handling without reinventing the wheel.
nlohmann/json ↗When you're building a C++ backend, you need to read and write JSON—configuration files, API responses, data storage. nlohmann/json is a single header file that does this cleanly. Drop it in your project, include it, and you can parse JSON strings into C++ objects and serialize them back without wrestling with manual string parsing or bloated XML libraries. It handles nested structures, arrays, edge cases, and type conversions automatically. For a C++ engineer building REST APIs or microservices, this saves hours of debugging. It's mature enough that it's in production at scale, stable enough that you won't be hunting for bugs in the library itself.
Share kit
nlohmann/json: Battle-tested JSON for C++ backends
A header-only C++ library that handles JSON parsing and serialization without friction. If you're shipping a C++ service, API, or tool that touches JSON, this is the pragmatic choice. Mature, widely used, zero surprises.
For C++ builders: nlohmann/json is the unsexy, reliable choice for JSON parsing. Header-only, handles nested structures and type conversion, used in production across dozens of backends. Not flashy. Just works. https://github.com/nlohmann/json
If you're shipping a C++ service that speaks JSON, nlohmann/json is the pragmatic library choice. Mature, header-only, zero external dependencies, and battle-tested at scale. One less thing to debug. Worth knowing about.
Just integrated nlohmann/json into a backend service and remembered why this library has sat at 40k+ stars for years. It's not flashy. It's not new. It's the thing that makes C++ JSON parsing feel like it shouldn't be this hard. The appeal is stupid simple: you write normal C++ code. Vectors map to arrays. Objects map to structs. No code generation, no schema wrestling, no boilerplate. If you're shipping backend infrastructure in C++, this is table stakes. Not because it's trendy. Because it works.
40k+ stars on nlohmann/json because sometimes the best tool is the one that makes the annoying part invisible. C++ + JSON shouldn't feel like a marriage of incompatible languages. This library solved that five years ago and hasn't needed to be interesting since.