title: Why is JSONObject.length undefined?
body: <p>In the code below, <code>JSONObject.length</code> is 2:</p>
  
  <pre><code>var JSONObject = [{
      "name": "John Johnson",
      "street": "Oslo West 16",
      "age": 33,
      "phone": "555 1234567"
  }, {
      "name": "John Johnson",
      "street": "Oslo West 16",
      "age": 33,
      "phone": "555 1234567"
  }];
  </code></pre>
  
  <p>However, in the code below, <code>JSONObject.length</code> is undefined. Why?</p>
  
  <pre><code>var JSONObject = {
      "name": "John Johnson",
      "street": "Oslo West 16",
      "age": 33,
      "phone": "555 1234567"
  };
  </code></pre>