title: Select2 not showing results, but successfully returning JSON
body: <p>I'm using the Select2 jQuery plugin with MVC4. I have my JavaScript file working with fetching data in JSON in my controller, but I'm getting an error when I debug and try to display the results:</p>
  
  <pre><code>Unable to get property 'toUpperCase' of undefined or null reference
  </code></pre>
  
  <p>I think it might have to do with the JSON I'm returning since it looks like objects or the fact that they're ints, but I'm not entirely sure. Converting them to strings via ToString() didn't work either. 
      [{"name":1,"label":1,},{"name":2,"label":2},...]</p>
  
  <p>Here's my JS:</p>
  
  <pre><code>$("#ItemID").select2({
      ...
      ajax: {
      url: $("#ItemID").attr("data-getids"),
      dataType: "json",
      data: function (param) {
          return {query: param};},
      results: function(data) {
          return {results: data};}
      }
  });
  </code></pre>