mirror of
https://github.com/nlohmann/json.git
synced 2026-10-02 22:05:54 +01:00
926 B
926 B
Header only
json.hpp is the single required file in single_include/nlohmann or released here. You need to add
#include <nlohmann/json.hpp>
// for convenience
using json = nlohmann::json;
to the files you want to process JSON and set the necessary switches to enable C++11 (e.g., -std=c++11 for GCC and Clang).
You can further use file single_include/nlohmann/json_fwd.hpp for forward declarations, and file single_include/nlohmann/json_literals.hpp for the user-defined string literals if you define JSON_NO_AUTOMATIC_UDLS.