mulitple JSON feeds in an array
<p>I am trying to pull 5 separate JSON feeds and have it looping where every individual has a nested getJSON.</p>

<pre><code>var feedList [feed1,feed2,feed3,feed4,feed5];

for (feed in feedList) {

  var index = 0;
   $.getJSON(feedList[feed], function(data) {
        $.each(data.items, function(i, obj) {
               $('li').append(obj.title + '=' + index + '&lt;br&gt;');
            });
        index++;
    }       

} 
</code></pre>

<p>For some reason in firebug it shows that I go through the for in loop then pull the feed successfully then completely bypass the anything inside the .getJSON loop. It doesn't go back into .getJSON loop until all the feeds are pulled. This messes up the order of the items being pulled and also the order is random every time I refresh the page. (e.g. feed2 is listed first then feed4 next)</p>

<p>I've also tried doing a regular for loop instead of a for in loop but it still changes nothing.</p>

<p>Can anyone help me?</p>
