Iterate over an array of JSON objects with jsoncpp Iterate over an array of JSON objects with jsoncpp json json

Iterate over an array of JSON objects with jsoncpp


Pretty self explanatory:

for (Json::Value::ArrayIndex i = 0; i != root.size(); i++)    if (root[i].isMember("attr1"))        values.push_back(root[i]["attr1"].asString());