Answers for "Exception Value: Object of type User is not JSON serializable"

0

Exception Value: Object of type User is not JSON serializable

current_user = request.user
current_user = serialize('json', self.get_queryset())
return HttpResponse(current_user, content_type="application/json")
Posted by: Guest on July-22-2021

Code answers related to "Exception Value: Object of type User is not JSON serializable"

Python Answers by Framework

Browse Popular Code Answers by Language