Registry / serialization / nlohmann-json

nlohmann-json

JSON →
library3.12.0vcpkgunverified

JSON for Modern C++: a header-only library for parsing and serializing JSON.

vcpkg install nlohmann-json
INSTALL
IMPORT
SIG · NLOHMANN-JSON
N
nlohmann-json
serializationcppv3.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nlohmann/json.hpp
#include <nlohmann/json.hpp>

Parses and prints a JSON object using nlohmann-json.

#include <nlohmann/json.hpp> #include <iostream> using json = nlohmann::json; int main() { json j = R"({"happy": true, "pi": 3.141})"_json; std::cout << j.dump(4) << "\n"; return 0; }
Debug
Known issues
gotchaHeader-only library; no linking required, but may increase compile times.
fix
Use precompiled headers or forward declare if possible.
affects: all
Upgrade
Version history
3.12.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

nlohmann-json — pip install nlohmann-json · libregistry