How to obtain the content from Multi-Level JSON format in JAVA?
<p>For example, a kind of JSON as below:</p>

<pre><code>    { "x":"1","y":"2","z":{"a":"1","b":"2","c":"3"}}
</code></pre>

<p>Put this as string in JSONObject argument:</p>

<pre><code>    JSONObject jaob=new JSONObject(xxx)
</code></pre>

<p>and from method "get("x")" of JSONObject I can obtain the value "1"</p>

<pre><code>     jaob.get("x")
</code></pre>

<p>But how to get "a" of the second level JSON format "z"???</p>

<p>When I try to obtain by</p>

<pre><code>     JSONObject(jaob.get("z").toString()).get("a")
</code></pre>

<p>but it doesn't work.<br>
Does any one have the idea?<br>
Any response is appreciated, thanks</p>
