title: Cannot get the length of JSON array in javascript
body: <p>I have read other issues regarding accessing a json array in javascript, but nothing helped in my case.
  I am receiving the below json in jquery ajax call.</p>
  
  <pre><code>{"jList":"[{\"added_by\":\"Ani\",\"description\":\"example description.\",\"start_date
  \":\"2014-10-10\",\"mark\":255,\"id\":975},{\"added_by\":\"Ani\",\"description
  \":\"example description..\",\"start_date\":\"2014-10-10\",\"mark\":255,\"id\":980
  }]"}
  </code></pre>
  
  <p>receiving method-</p>
  
  <pre><code>$.getJSON("url",
                  {var : Val},
                  function(data){
                      here...
  </code></pre>
  
  <p>All I want is to count the JSON objects in this array. In the above case I want an length output as 2 but I'm not getting it.
  I have tried below things-</p>
  
  <ol>
  <li><code>data.jList.length</code> -- &lt; giving 200 like something as output</li>
  <li><code>Object.keys(data).length</code> -- &lt; giving 200 like something as output</li>
  <li><code>Object.keys(data['jList']).length</code> -- &lt; giving 1 as output</li>
  </ol>
  
  <p>How do I get 2 as length output of the above array?</p>