title: Traverse and print nested JSON data
body: <p>I have a file with JSON data in a nested format. I want to traverse through this data and output it in the form of a JQuery listview but am unable to do so.</p>
  
  <p>The JSON data is in this format:</p>
  
  <pre><code>{
    "Name":"A",
    "Company": "B",
    "Address": {
      "Street":"ABC",
      "City":"XYZ"
    }
  } 
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>$.each(data, function(key,value) {
     $('#companyDetails').append('&lt;li&gt;'+key+'&lt;span class="ui-li-aside"&gt;'+value+'&lt;/span&gt;&lt;/li&gt;');
  });
  </code></pre>
  
  <p>but this does not output the 'Address' block properly.</p>