title: JSON Array Structure Variations
body: <p>Below are 3 JSON Array structure formats...</p>
  
  <p>The first one, the one outlined at JSON.org, is the one I am familiar with:</p>
  
  <p><strong>Format #1</strong></p>
  
  <pre><code>{"People": [
    {
      "name": "Sally",
      "age": "10"
    },
    {
      "name": "Greg",
      "age": "10"
    }
  ]}
  </code></pre>
  
  <p>The second one is a slight variation that names the elements of the array.  I personally don't care for it; you don't name elements of an array in code (they are accessed by index), why name them in JSON?</p>
  
  <p><strong>Format #2</strong></p>
  
  <pre><code>{"People": [
    "Person1": {
      "name": "Sally",
      "age": "10"
    },
    "Person2": {
      "name": "Greg",
      "age": "10"
    }
  ]}
  </code></pre>
  
  <p>This last one is another variation, quite similar to <strong>Format #2</strong>, but I have a hunch this one is incorrect because it appears to have extra curly braces where they do not belong.</p>
  
  <p><strong>Format #3</strong></p>
  
  <pre><code>{"People": [
    {
      "Person1": {
        "name": "Sally",
        "age": "10"
      }
    },
    {
      "Person2": {
        "name": "Greg",
        "age": "10"
      }
    }
  ]}
  </code></pre>
  
  <p>Again, I'm confident that <strong>Format #1</strong> is valid as it is the JSON Array format outlined at JSON.org.  However, what about <strong>Format #2</strong> and <strong>Format #3</strong>?  Are either of those considered valid JSON?  If yes, where did those formats come from?  I do not see them outlined at JSON.org or on Wikipedia. </p>