1 #include <iostream> 2 #include <iomanip> 3 #include <nlohmann/json.hpp> 4 5 using json = nlohmann::json; 6 main()7int main() 8 { 9 nlohmann::json uj1 = {{"version", 1}, {"type", "integer"}}; 10 nlohmann::json uj2 = {{"type", "integer"}, {"version", 1}}; 11 12 nlohmann::ordered_json oj1 = {{"version", 1}, {"type", "integer"}}; 13 nlohmann::ordered_json oj2 = {{"type", "integer"}, {"version", 1}}; 14 15 std::cout << std::boolalpha << (uj1 == uj2) << '\n' << (oj1 == oj2) << std::endl; 16 } 17