I would love to have the ability to iterate over a JSON object type in exactly the same way I would iterate over a std::map:
for(auto& i : map) { i.first; i.second; }
Would it be possible to have a free function (or member) that would allow me to do something like:
for(auto& i : as_map(jsonObj)) {...}
such that the iterator exposed here works more like map::iterator (.first,.second) than the current iterator type (.key,.value).
I would love to have the ability to iterate over a JSON object type in exactly the same way I would iterate over a std::map:
for(auto& i : map) { i.first; i.second; }Would it be possible to have a free function (or member) that would allow me to do something like:
for(auto& i : as_map(jsonObj)) {...}such that the iterator exposed here works more like map::iterator (.first,.second) than the current iterator type (.key,.value).