this will work
import json spam = b'"{\"success\": \"true\", \"status\": 200, \"message\": \"Hello\"}"' print(spam.decode()) data = json.loads(spam.decode()[1:-1]) print(data['success'])but I think there is problem with the data being send/receive - i.e. extra quotes. Probably on the sending site you make too many conversions
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs