1 #include <iostream> 2 #include <nlohmann/json.hpp> 3 4 using json = nlohmann::json; 5 main()6 int main() 7 { 8 // create JSON values 9 json a = 23; 10 json b = 42; 11 12 // copy-assign a to b 13 b = a; 14 15 // serialize the JSON arrays 16 std::cout << a << '\n'; 17 std::cout << b << '\n'; 18 } 19