I have some external service that sends me next json:
json_str = b'{"a": "\xc3-----\xa4-----\x13"}'
When I trying to parse it, I get next error:
----> 1 json.loads(json_str)
ValueError: Invalid control character at: line 1 column 20 (char 19)
I managed to parse it correctly using next command:
In [37]: eval(json_str)
Out[37]: {'a': '\xc3-----\xa4-----\x13'}
Are there any ideas on how to parse it in another way?