I've got a problem with encoding unicode escapes. After python manage.py dumpdata
, I have json
with escaped strings.
I need to get readable strings, so I tried to use
json_data.decode("unicode_escape").encode("utf8")
but decode("unicode_escape")
also decodes symbols like \n
, \"
etc. And ofcourse I get not valid json.
How can I fix it?