title: Qt Can't get data from QJsonObject
body: <p>I have this code, which should get country info from this page(<a href="http://ipinfo.io/json" rel="nofollow">http://ipinfo.io/json</a>) :</p>
  
  <pre><code>{
  QByteArray rawData;
  QString countryIp;
  if (rep-&gt;error() == QNetworkReply::NoError)
      rawData = rep-&gt;readAll();
  QJsonDocument jsonResponse(QJsonDocument::fromJson(rawData));
  QJsonObject jsonObject = jsonResponse.object();
  countryIp = jsonObject["country"].toString();
  qDebug() &lt;&lt; countryIp;
  } 
  </code></pre>
  
  <p>But actually all I got from this code is a blank space. I can't find where is a mistake.</p>