title: Loop into Javascript object and show in table
body: <p>I am using JavaScript JSON object. I am not sure this is the right way to write JSON object :-</p>
  
  <pre><code>var address={
      details:{
          "martin":[{"full_name":"James Martin"},{"address":"Florida"},{"phone":"897657834"}],
          "luthar":[{"full_name":"Luther king"},{"address":"Boston"},{"phone":"9856568789"}],
          "jonson":[{"full_name":"Jonson vierra"},{"address":"New york"},{"phone":"98654567887"}]
      }
  }
  </code></pre>
  
  <p>Now, I want to show every elements of each person in a table. I can do this manually by writing:</p>
  
  <pre><code>&lt;table border=1&gt;
  &lt;tr&gt;
  &lt;td&gt;&lt;script&gt;document.write(address.details.martin[0].full_name)&lt;/script&gt;&lt;/td&gt;
  &lt;td&gt;&lt;script&gt;document.write(address.details.martin[1].address)&lt;/script&gt;&lt;/td&gt;
  &lt;td&gt;&lt;script&gt;document.write(address.details.martin[2].phone)&lt;/script&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Like this for all 3 people, but I want to grab full details of every person by using a loop. 
  How can I do this easily by using a loop?</p>