 <p>Is this what you are looking for</p> <pre><code>var json = {"userid":"12345","cmpyname":"stackoverflow", "starrays": [{"transaction":"7272785","value2":"GOOGLE"}, //Array [0] {"transaction":"85785272","value2":"YAHOO"}, //Array [1] {"transaction":"4774585","value2":"REDIFF"}], //Array [2] "value3":"95345"} if(json["starrays"].length &gt; 0 &amp;&amp; (json["starrays"][0].transaction != undefined &amp;&amp; json["starrays"][0].value2 != undefined)) { $('#outer').show(); $('#val').html(json["starrays"][0].value2); $('#amt').html(json["starrays"][0].transaction); } </code></pre>