I can't get the Ajax example to work outside of the [github example on the documentation page](https://select2.github.io/examples.html#data-ajax). 

Here's what I'm trying:

<https://jsfiddle.net/vhrpzcuv/8/>

```
<select name="test" class="select2picker" style="width: 100%">
 <option value="test">test</option>
</select>

    $('.select2picker').select2({
    ajax: {
        url: "", //For testing don't do this.  
        dataType: 'json',
        data: function(params) {
            return {
                filter: params.term // search term
            };
        },
        processResults: function(data) {
            data = [{
                id: 0,
                text: 'enhancement'
            }];
            console.log(data);
            return data;
        }
    }
});

```