[Django]-Django rest api: JSON parse error – No JSON object could be decoded

5👍

Well you are not sending json, you are sending regular POST request with name/value pairs.

You need to switch postman to “raw” format and type something like {"name": "X", "email":"Y"}

Then on a python side you can read it as json.loads(request.body)

👤serg

Leave a comment