def get(self, request, *args, **kwargs):
self.widget = self.get_widget_or_404()<EOL>self.term = kwargs.get('<STR_LIT>', request.GET.get('<STR_LIT>', '<STR_LIT>'))<EOL>self.object_list = self.get_queryset()<EOL>context = self.get_context_data()<EOL>return JsonResponse({<EOL>'<STR_LIT>': [<EOL>{<EOL>'<STR_LIT:text>': self.widget.label_from_instance(obj),<EOL>'<STR_LIT:id>': obj.pk,<EOL>}<EOL>for obj in context['<STR_LIT>']<EOL>],<EOL>'<STR_LIT>': context['<STR_LIT>'].has_next()<EOL>})<EOL>
Return a :class:`.django.http.JsonResponse`.

Example::

    {
        'results': [
            {
                'text': "foo",
                'id': 123
            }
        ],
        'more': true
    }