title: Parsing a large JSON array in Javascript
body: <p>I'm supposed to parse a very large JSON array in Javascipt. It looks like:</p>
  
  <pre><code>mydata = [
      {'a':5, 'b':7, ... },
      {'a':2, 'b':3, ... },
      .
      .
      .
      ]
  </code></pre>
  
  <p>Now the thing is, if I pass this entire object to my parsing function <code>parseJSON()</code>, then of course it works, but it blocks the tab's process for 30-40 seconds (in case of an array with 160000 objects). </p>
  
  <p>During this entire process of requesting this JSON from a server and parsing it, I'm displaying a 'loading' gif to the user. Of course, after I call the parse function, the gif freezes too, leading to bad user experience. I guess there's no way to get around this time, is there a way to somehow (at least) keep the loading gif from freezing?</p>
  
  <p>Something like calling parseJSON() on chunks of my JSON every few milliseconds? I'm unable to implement that though being a noob in javascript.</p>
  
  <p>Thanks a lot, I'd really appreciate if you could help me out here.</p>