Lines Matching full:json
2 #include <nlohmann/json.hpp>
4 using json = nlohmann::json;
8 // create JSON objects
9 json j_no_init_list = json::object();
10 json j_empty_init_list = json::object({});
11 json j_list_of_pairs = json::object({ {"one", 1}, {"two", 2} });
13 // serialize the JSON objects
22 json j_invalid_object = json::object({{ "one", 1, 2 }});
24 catch (json::type_error& e)