title: Merge 2 data responses from json
body: <p>If i do this for argument sake :</p>
  
  <pre><code>$.when(
      $.getJSON('http://myUrlOne/?format=json'),
      $.getJSON('http://myUrlTwo/?format=json')
  ).then(function () {
      // how can i merge the response from both json requests before processing them
  });
  </code></pre>
  
  <p>Both url's are on the twitter api but one is a keyword search and one is just a regular user timeline call.</p>
  
  <p>I am trying to amend a twitter plugin, to show both the username timeline (in the fist json request) and @username mentions by searching for @username (in the second json request)</p>
  
  <p>See current function i want to amend to call 2 urls and merge the data before processing it : </p>
  
  <pre><code>  $.getJSON(build_api_url(), function(data){
      var tweets = $.map(data.results || data, extract_template_data);
      tweets = $.grep(tweets, s.filter).sort(s.comparator).slice(0, s.count);
      $(widget).trigger("tweet:retrieved", [tweets]);
    });
  </code></pre>
  
  <p>This does not work : </p>
  
  <pre><code> $.when(
    $.getJSON(build_api_url(),
    $.getJSON(build_user_url()
    ).done( function(json1, json2) {
   var data = $.extend(json1, json2)
        // json1 and json2 represent the returned json, so just combine them as needed here
        var tweets = $.map(data.results || data, extract_template_data);
        tweets = $.grep(tweets, s.filter).sort(s.comparator).slice(0, s.count);
        $(widget).trigger("tweet:retrieved", [tweets]);
    });
  </code></pre>