title: Qt parsing JSON using QJsonDocument, QJsonObject, QJsonArray
body: <p>I'm using Qt5. I am trying to obtain values from a json object. Here is what the json object looks like that I am trying to get data from:</p>
  
  <pre><code>{
      "success": true,
      "properties": [
          {
              "ID": 1001,
              "PropertyName": "McDonalds",
              "key": "00112233445566778899aabbccddeeff"
          },
          {
              "ID": 1002,
              "PropertyName": "Burger King",
              "key": "10112233445566778899aabbccddeeff"
          },
          {
              "ID": 1003,
              "PropertyName": "Taco Bell",
              "key": "20112233445566778899aabbccddeeff"
          }
      ]
  }
  </code></pre>
  
  <p>How can I create three arrays that contain <code>properties[x].ID</code>, <code>properties[x].PropertyName</code>, and <code>properties[x].key</code> in Qt?</p>
  
  <p>Edit:</p>
  
  <p>Using <code>QScriptEngine</code> I tried this:</p>
  
  <pre><code>QString data = (QString)reply-&gt;readAll();
  
  QScriptEngine engine;
  
  QScriptValue result = engine.evaluate(data);
  
  qDebug() &lt;&lt; result.toString();
  </code></pre>
  
  <p>Debug is saying "SyntaxError: Parse error"</p>