Hi wieser_software,
In our 2.0 release we made a breaking change to the JSON portions of the library.
We changed how iteration over json arrays and objects is performed. No longer is an iterator of std::pair<json::value, json::value> returned. Instead there is a separate iterator for arrays and objects on the json::array and json::object class respectively. This allows us to make performance improvements and continue to adjust accordingly. The array iterator returns json::values, and the object iterator now returns std::pair<string_t, json::value>.
Depending on if you are iterating over a JSON object or array you will need to insert as_array() or as_object, for example:
In our 2.0 release we made a breaking change to the JSON portions of the library.
We changed how iteration over json arrays and objects is performed. No longer is an iterator of std::pair<json::value, json::value> returned. Instead there is a separate iterator for arrays and objects on the json::array and json::object class respectively. This allows us to make performance improvements and continue to adjust accordingly. The array iterator returns json::values, and the object iterator now returns std::pair<string_t, json::value>.
Depending on if you are iterating over a JSON object or array you will need to insert as_array() or as_object, for example:
for(const auto &f : d[L"flags"].as_array())
Steve