cpp
rapidjson: iterate over object and array
// get an object auto groups = doc["groups"].GetObject(); // iterate over key-value-pairs ( group.name and group.value ) for (auto const& group : groups){ cout << "group:" << group.name.GetString() << endl; // the value is an array. The call to iterate over the array