How can I display json data in a qtextbox
<p>For example I have this json data which is read in from a file: </p>

<pre><code>{"name": "Gilbert", "wins": [["straight", "7"], ["one pair", "10"]]}
</code></pre>

<p>How can I then display this in an edit text box with formatted indentations</p>

<pre><code>{  
   "name":"Gilbert",
   "wins":[  
      [  
         "straight",
         "7"
      ],
      [  
         "one pair",
         "10"
      ]
   ]
}
</code></pre>