JSON library for modern C++ with intuitive syntax
JSON for modern C++
nlohmann-json$ #include <nlohmann/json.hpp>
using json = nlohmann::json;
json j = json::parse("[1, 2, 3]");$ json j;
j["name"] = "John";
j["age"] = 30;
std::cout << j.dump();$ json j = json::parse("{\"user\": {\"id\": 1}}");
int id = j["user"]["id"];