1#include <iostream> 2#include <iomanip> 3#include <nlohmann/json.hpp> 4 5using json = nlohmann::json; 6using namespace nlohmann::literals; 7 8int main() 9{ 10 json j = R"( {"hello": "world", "answer": 42} )"_json; 11 12 std::cout << std::setw(2) << j << '\n'; 13} 14