title: Object of type 'AttrList' is not JSON serializable
body: <pre><code>class SearchSuggest(View):
  def get(self, request):
      key_words = request.GET.get('s','')
      re_datas = []
      if key_words:
          s = JobType.search()
          s = s.suggest('my_suggest', key_words, completion={
              "field":"suggest", "fuzzy":{
                  "fuzziness":2
              },
              "size": 10
          })
          suggestions = s.execute_suggest()
          for match in suggestions.my_suggest[0].options:
              source = match._source
              re_datas.append(str(source["job_name"]))
  
      # return HttpResponse(json.dumps(re_datas), content_type="application/json")
      return HttpResponse(json.dumps(re_datas), content_type="application/json")
      # re_datas=list(re_datas)
  </code></pre>
  
  <p>But the result :</p>
  
  <p><a href="https://i.stack.imgur.com/ELqZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ELqZD.png" alt="the result here"></a></p>
  
  <p>So how can i fix this? thanks!I expect not list type!
  I hope the view in the browser was the str but not list.I'm trying to fix it.</p>