How to parse Json String in QT that contains object inside object
<p>I am getting a JSON string format </p>

<pre><code>"{\"bookHeavyInfo\":{\"Qty\":100},\"bookLightInfo\":{\"Qty\":2}}"
</code></pre>

<p>How can i extract the value of Qty for <code>bookHeavyInfo</code>
I am trying some thing like following </p>

<pre><code>void parseJsonString(QString str)
{

 QJsonDocument jsonResponse = QJsonDocument::fromJson(str.toUtf8());

 QJsonObject jsonObject = jsonResponse.object();

 QString bookHeavyInfo= jsonObject["bookHeavyInfo"].toString();

}
</code></pre>

<p>I am not able to get value of <code>bookHeavyInfo</code>, and more specific how can I get the value of Qty . Please suggest</p>