basic_json__copyassignment.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 JSON values
00008     json a = 23;
00009     json b = 42;
00010 
00011     // copy-assign a to b
00012     b = a;
00013 
00014     // serialize the JSON arrays
00015     std::cout << a << '\n';
00016     std::cout << b << '\n';
00017 }


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