title: JavaScript Ajax data is array but length is undefined
body: <p>I have the following Json result:</p>
  
  <p>(Taken from the console)</p>
  
  <pre><code>data
  Object {0: Object, 1: Object, 2: Object, 3: Object, 4: Object, 5: Object, 7: Object}
  </code></pre>
  
  <p>if i in the console do <code>data[0]</code> i get the following result:</p>
  
  <pre><code>Object {id: 125, Module_id: 2, academy_id: 7, Team_id: 5, end: "2014-08-12 00:00:00"…}
  </code></pre>
  
  <p>However when i do <code>data.length</code> the value is <code>undefined</code> can anyone tell me what is going on?</p>