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)
Source:stackexchange.com