title: JQuery iterate over array of dictionaries
body: <p>I have an array of <code>dicts</code> returned by the server in an ajax request as:</p>
  
  <pre><code>var obj =  [{'id': '111', 'name': 'test1'}, {'id': '1975', 'name': 'test2'}]
  </code></pre>
  
  <p>When I try to access each dictionary as:</p>
  
  <pre><code>$.each(obj,function(index,value){ 
      alert(index + " : " + value);
  });
  </code></pre>
  
  <p>I get the error: </p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot use 'in' operator to search for '193' in [{'id': '111', 'name': 'test1'}, {'id': '1975', 'name': 'test2'}]</p>
  </blockquote>
  
  <p>How can you access each dictionary in the array?</p>