title: Qt5 JSON parsing from QByteArray
body: <p>I have QByteArray,contains this JSON</p>
  
  <pre><code>{"response":
        {"count":2,
           "items":[
               {"name":"somename","key":1"},
               {"name":"somename","key":1"}
  ]}}
  </code></pre>
  
  <p>Need to parse and get the required data:</p>
  
  <pre><code>  QJsonDocument itemDoc = QJsonDocument::fromJson(answer);
    QJsonObject itemObject = itemDoc.object();
    qDebug()&lt;&lt;itemObject;
    QJsonArray itemArray = itemObject["response"].toArray();
    qDebug()&lt;&lt;itemArray;
  </code></pre>
  
  <p>First debug displays the contents of all QByteArray, recorded in itemObject, second debug does not display anything.</p>
  
  <p>Must i parse this otherwise,or why this method does not work?</p>