00001 #include <json.hpp> 00002 00003 using json = nlohmann::json; 00004 00005 int main() 00006 { 00007 // create a string value 00008 std::string s = "The quick brown fox jumps over the lazy dog."; 00009 00010 // create a JSON string value 00011 json j = s; 00012 00013 // serialize the JSON string 00014 std::cout << j << '\n'; 00015 }