Django 调试时提示: In order to allow non-dict objects to be serialized return JsonResponse(result) 改为: return JsonResponse(result, safe=False)