title: How to format multiple JSON objects in an Array
body: <p>I want to have a JSON object which contains multiple person objects. Is there a better way to format this? What I did below is have a <code>result</code> key which would be an array consisting of arrays (which have the JSON person object inside of the inner array).</p>
  
  <pre><code>{
  result: [
              [
                {
                  "name": "Josh",
                  "age": 15
                }
              ],
  
              [
                {
                  "name": "Joe",
                  "age": 16
                }
              ]
         ]
  }
  </code></pre>
  
  <p>Then in the for loop I do something like this:</p>
  
  <pre><code>var nameArray = result[0];
  for (var i = 0; i &lt; numberOfObjectsInJSONObject; i++) {
      newNameArray.push(nameArray[i].firstPerson);        
  }
  </code></pre>