title: Why am I getting undefined when asking for json.length?
body: <p>I have a json like this:</p>
  
  <pre><code>{"result":{"sandbox":1,"0":{"id":1106,"url":"http:\/\/www.example.com\/index1.html"},"1":{"id":9655,"url":"http:\/\/www.example.com\/index2.html"},"2":{"id":8447,"url":"http:\/\/www.example.com\/index3.html"}}}
  </code></pre>
  
  <p>and I'm retrieving it and then doing this:</p>
  
  <pre><code>var json = JSON.parse(data);
  console.log(json.length);
  </code></pre>
  
  <p>but the console outputs "undefined" even if when I just log (json) it shows me the object. Why? and how can I get the length? I need it for a for loop</p>