title: How to load data from 2 json files using jquery?
body: <p>I have two json files and I want to do an ajax call to both of them.</p>
  
  <pre><code>$.getJSON('http://www.example.com/contest_media', function(data) { do something });
  $.getJSON('http://www.example.com/contest', function(data) { do something });
  </code></pre>
  
  <p>I want it to become something like:</p>
  
  <pre><code>$.getJSON(['http://www.example.com/contest_media', 'http://www.example.com/contest'], function(data) { do something});
  </code></pre>
  
  <p>I am also using <code>$.each(data, function(i,item) {}</code> so I can't do:</p>
  
  <pre><code>$.getJSON('http://www.example.com/contests', function(data) { 
  $.each(data, function(i,item) {
      do something
      $.getJSON('http://www.example.com/contest_media', function(data) {do something });
  }
  });
  </code></pre>
  
  <p>Here the <code>contest_media</code> won't keep track of <code>contests</code>. </p>
  
  <p>I basically want to use data from both json files in the same <code>$.each</code>.  Any ideas?</p>