I have an application that sends me json data in bytes format. When I try to convert them back to json, the following error occurs:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd7 in position 29: invalid continuation byte. Here is an example of bytes I want to convert:
b'\x02\x05W"\x00\x00\x00\x11\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xd7\x0f\x00'