title: Parse jsonarray?
body: <p>I've got an JSON like the following:</p>
  
  <pre><code>{
      "agentsArray": [{
          "ID": 570,
          "picture": "03803.png",
          "name": "Bob"
      }, {
          "ID": 571,
          "picture": "02103.png",
          "name": "Tina"
      }]
  }
  </code></pre>
  
  <p>Now I'm trying to loop through each array element. Using the <code>qt-json</code> library <a href="https://github.com/da4c30ff/qt-json" rel="noreferrer">https://github.com/da4c30ff/qt-json</a></p>
  
  <p>Tried:</p>
  
  <pre><code>            foreach(QVariantMap plugin, result["agentsArray"].toList()) {
                  qDebug() &lt;&lt; "  -" &lt;&lt; plugin["ID"].toString();
              }
  </code></pre>
  
  <p>But cannot get it to work, any ideas what I'm doing wrong?</p>