converting from bytes to json using python

0 votes
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'
Jun 1, 2021 in Python by leauradmin
• 110 points

edited Mar 4 13 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP