'"Return option list json response.'

def get(self, request, *args, **kwargs):

    results = self.get_list()
    create_option = []
    if self.q:
        results = [x for x in results if (self.q.lower() in x.lower())]
        if hasattr(self, 'create'):
            create_option = [{'id': self.q, 'text': ('Create    "%s"' % self.q), 'create_id': True}]
    return http.HttpResponse(json.dumps({'results': ([dict(id=x, text=x) for x in results] + create_option)}))
