title: select2 Tagging with JSON
body: <p>I just started using [select2][1] and I'm working on a project that needs a list of tags (like on StackOverflow) that is populated from a JSON data source. I'm using an example found on this question: [Tagging With Ajax In Select2][2] but I'm having some trouble getting it to work.</p>
  
  <pre><code>        // Testing JSON load
          $("#testJsonLoad").select2({
              tags: true,
              tokenSeparators: [",", " "],
              createSearchChoice: function (term, data) {
  
                  if ($(data).filter(function () {
                      return this.text.localeCompare(term) === 0;
                  }).length === 0) {
                      return {
                          id: term,
                          text: term
                      };
                  }
              },
              multiple: true,
              ajax: {
                  url: 'data.json',
                  dataType: "json",
                  data: function (term, page) {
                      return {
                          q: term
                      };
                  },
                  results: function (data, page) {
                      return {
                          results: data
                      };
                  }
              }
          });
  </code></pre>
  
  <p>Just for testing purposes the data.json page has this data in it:</p>
  
  <pre><code>{
  "data": [
      { "id" : 1, "text" : "Alabama" },
      { "id" : 2, "text" : "Alaska" },
      { "id" : 3, "text" : "Arizona" },
      { "id" : 4, "text" : "Arkansas" },
      { "id" : 5, "text" : "California" },
      { "id" : 6, "text" : "Colorado" },
      { "id" : 7, "text" : "Connecticut" },
      { "id" : 8, "text" : "Delaware" },
      { "id" : 9, "text" : "District of Columbia" },
      { "id" : 10, "text" : "Florida" },
      { "id" : 11, "text" : "Georgia" },
      { "id" : 12, "text" : "Hawaii" },
      { "id" : 13, "text" : "Idaho" } ]
  }
  </code></pre>
  
  <p>My problem is that I'm getting this error:
  this.text is undefined - Line 78</p>
  
  <pre><code>return this.text.localeCompare(term) === 0;  
  </code></pre>
  
  <p>I am thinking it may have something to do with the way my JSON is formatted. I've tried a few different formats out and most of my research online hasn't yielded positive results. </p>