title: Ajax call returns some but not all Json data
body: <p>I'm trying to have the user select some data, which is then inserted into a database using ajax. Then, I use ajax to get the new data from my json endpoint, so that I can update the webpage without reloading it. However, ajax call sometimes doesn't return all the updated data. For example, if the user were to select 3 items, the ajax call sometimes only returns the first 2 items. </p>
  
  <p>Insert into database</p>
  
  <pre><code>$.ajax({
              dataType: "json",
              url: "http://localhost:8080/api/addChampionForUser",
              data: params,
              async: false,
              success: function (data) {
                  $.each(data.newChamp, function (key, val) {
                      if (val.mes) {
                          $(".message").append("&lt;div&gt; " + val.mes + " &lt;/div&gt;");
                      }
                      else if (val.err) {
                          $(".message").append("&lt;div&gt; " + val.err + " &lt;/div&gt;");
                      }
                  });
              }
          });
  </code></pre>
  
  <p>Get info from api</p>
  
  <pre><code>$.ajax({
              dataType: "json",
              url: "http://localhost:8080/api/getChampions",
              data: params,
              //have also tried setting async to false
              async: true,
              success: function(data){
                  $.each(data.champions, function(key, val){
                      $.each(val, function(k2, v2){
                          alert(v2.name + " " + v2.type);
                      });
                  });
              }
          });
  </code></pre>
  
  <p>The json output looks like this:</p>
  
  <pre><code>{"champions":[[
        {
           "class":"championkeeper.Champion",
           "id":null,
           "name":"Aatrox",
           "type":"fighter",
           "user":"test"
        },
        {
           "class":"championkeeper.Champion",
           "id":null,
           "name":"Blitzcrank",
           "type":"fighter",
           "user":"test"
        },
        {
           "class":"championkeeper.Champion",
           "id":null,
           "name":"Darius",
           "type":"fighter",
           "user":"test"
        }
  ]]}
  </code></pre>