1.简述
假设遍历的数据是这样构成的
QJsonObject jsonObj;
jsonObj.insert("Name","tang");
jsonObj.insert("Age","18");
jsonObj.insert("Num","20012391331");
2.遍历
QJsonObject jsonConfig;
QJsonObject::Iterator iteratorJson;
iteratorJson = jsonConfig.begin();
while(iteratorJson != jsonConfig.end()){
QString strVal = iteratorJson.value().toString();
qDebug()<<"值:"<<strVal;
iteratorJson++;
}