[Answer]-Getting codec error when parsing json with Django REST

1👍

You’re calling json.dumps on a string instead of a dict, which results in double escaping.

You’d want self.info to be a Unicode string with your payload encoded as utf-8 json, so you can say:

self.info = json.dumps({"culture": u"Blé"})
# or just use a string in the first place
self.info = u'{"culture": "Blé"}'
👤Kos

Leave a comment