nlohmann-json
« Back to VersTracker
Description:
JSON for modern C++
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ json library header-only development
Install: brew install nlohmann-json
About:
Nlohmann JSON is a header-only C++ library designed for intuitive JSON parsing and serialization. It provides a modern, STL-like interface that allows developers to work with JSON data using standard C++ idioms. Its primary value lies in its ease of integration and usage, requiring no external dependencies.
Key Features:
  • Header-only library for easy integration
  • STL-like container interface (e.g., iterators, accessors)
  • Automatic type conversion to/from C++ structures
  • Supports both input and output streaming
Use Cases:
  • Parsing configuration files in C++ applications
  • Interfacing with REST APIs that return JSON data
  • Serializing C++ objects for data storage or transmission
Alternatives:
  • RapidJSON – RapidJSON is generally faster but has a more complex API and is not strictly header-only in the same way.
  • JsonCpp – JsonCpp is an older library that requires linking against a compiled library, whereas nlohmann-json is header-only.
Version History
Detected Version Rev Change Commit