Advertisement
cepxuozab

MinifyArray

Jul 10th, 2023
1,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. Array arr_val = {42, 4.2, true, "42"s, Array{}};
  2.     auto arr_json = "[42, 4.2, true, \"42\", []]"s;
  3.     auto arr_json_minify = "[42,4.2,true,\"42\",[]]"s;
  4.  
  5.     Dict dict_val = {{"42"s, 42}, {"4.2"s, 4.2}, {"true"s, true}, {"string"s, "string"s}, {"[]"s, Array{}}};
  6.     auto dict_json = "{\"42\": 42, \"4.2\": 4.2, \"true\": true, \"string\": \"string\", \"[]\": []}"s;
  7.     auto dict_json_minify = "{\"42\":42,\"4.2\":4.2,\"true\":true,\"string\":\"string\",\"[]\":[]}"s;
  8.  
  9. LoadJSON(arr_json_minify).GetRoot() == arr_val  ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement