[Answered ]-Django Malformed String in view due to boolean variations

2👍

You’re actually posting JSON. So you should decode it to Python dict via the json decoder in your view rather than calling literal_eval.

x = json.loads(request.body)

Leave a comment