nlohmann-json

Install command:
brew install nlohmann-json

JSON for modern C++

https://json.nlohmann.me/

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/nlohmann-json.json

Formula code: nlohmann-json.rb on GitHub

Bottle (binary package) installation support provided.

Current versions:

stable ✅ 3.12.0
head ⚡️ HEAD

Patches:

https://github.com/nlohmann/json/commit/34868f90149de02432ea758a29227a6ad74f098c

Depends on when building from source:

cmake 4.5.1 Cross-platform make

GitHub Packages downloads:

Last 30 days91,255
Downloads1,839,018
Analytics install events (30 days)2,027
Downloads / install events (30 days)45.0×

Source: GitHub Packages, fetched 2026-11-20T00:56:50Z. Analytics dates: 2026-10-21 to 2026-11-20. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,0274,79433,444
Installs (--HEAD)0114
Installs on Request5361,2716,578
Installs on Request (--HEAD)0114
Build Errors0