basic_json__object_t.cpp
Go to the documentation of this file.
00001 #include <json.hpp>
00002 
00003 using json = nlohmann::json;
00004 
00005 int main()
00006 {
00007     // create an object_t value
00008     json::object_t value = { {"one", 1}, {"two", 2} };
00009 
00010     // create a JSON object from the value
00011     json j(value);
00012 
00013     // serialize the JSON object
00014     std::cout << j << '\n';
00015 }


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:01