I\'ve got an JSON like the following:
{ \"agentsArray\": [{ \"ID\": 570, \"picture\": \"03803.png\", \"name\": \"Bob\" }, {
output is QByteArray type
output
QJsonDocument doc(QJsonDocument::fromJson(output)); foreach (const QJsonValue & v, doc.array()){ Person person; person.fromJson(v.toObject()); }