yep,
s
is already a JSON string, no need to dump it againwin32file.WriteFile(handle, s.encode())or
s = {"success": "true", "status": 200, "message": "Hello"} win32file.WriteFile(handle, json.dumps(s).encode())then on receiving end
data = json.loads(spam.decode())Also, didn't work with win32file.WriteFile, not sure if you can skip also encode/decode part
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