Dec-04-2020, 10:44 AM
Hi
Yes this works, but I am reading from a pipe using
TypeError: string indices must be integers
Yes this works, but I am reading from a pipe using
result, data = win32file.ReadFile(p, 65535)This gives me the string
b'"{\\"success\\": \\"true\\", \\"status\\": 200, \\"message\\": \\"Hello\\"}"'I then decode
d = data.decode('ascii')Then I do a json load
json_data = json.loadsbut when I try to access as a json object I get the error
TypeError: string indices must be integers