title: TypeError: Object of type 'int32' is not JSON serializable
body: <p>I have to select those symptoms which is in the dictionary with the symptoms already posted.It works fine.But for some symptoms typeError is showing in command prompt and also all are getting printed in command prompt but not in html page.
  Here is my code</p>
  
  <p>views.py</p>
  
  <pre><code>def predict(request):
  sym=request.POST.getlist('symptoms[]')
  sym=list(map(int,sym))
  diseaseArray=[]
  diseaseArray=np.array(diseaseArray,dtype=int)
  dictArray=[]
  for dicti in dictionary:
      if (set(sym)&lt;= set(dicti['symptoms']) and len(sym)!= 0) or [x for x in sym if x in dicti['primary']]:
          diseaseArray=np.append(diseaseArray,dicti['primary'])
          diseaseArray=np.append(diseaseArray,dicti['symptoms'])
  diseaseArray=list(set(diseaseArray))
  print(diseaseArray)
  for i in diseaseArray:
      if i not in sym:
          dict={'id':i}
          dictArray.append(dict)
          print(dictArray)
  for j in dictArray:
      symptoms=Symptom.objects.get(syd=j['id'])
      j['name']=symptoms.symptoms
      print(j['name'])
  print(len(dictArray))
  return JsonResponse(dictArray,safe=False)
  </code></pre>
  
  <p>template</p>
  
  <pre><code>$('.js-example-basic-multiple').change(function(){
    $('#suggestion-list').html('');
    $('#suggestion').removeClass('invisible');
  
    $.ajax({
    url:"/predict",
    method:"post",
    data:{
      symptoms: $('.js-example-basic-multiple').val(),
    },
    success: function(data){
  
        data.forEach(function(disease){
        console.log(disease.name)
          $('#suggestion-list').append('&lt;li&gt;'+disease.name+'&lt;li&gt;')
          $('#suggestion-list').removeClass('invisible');
      });
  
  
  
    }
  
    });
  </code></pre>