title: How to wait till json file loaded
body: <p>I am using jquery's $.getJSON method to get two json file. </p>
  
  <p>This is simple structure of my code</p>
  
  <pre><code>$.getJSON(url1, function(data) {
   //some code
  }
  $.getJSON(url2, function(data) {
   //some code
  }
  fillList();
  </code></pre>
  
  <p>I want that to call the fillList() method only after both the json data succesfully loaded.
  What is the simplest method to do that ?</p>