Text-Translation-API-V3-Python icon indicating copy to clipboard operation
Text-Translation-API-V3-Python copied to clipboard

Error : the JSON object must be str, not 'bytes'

Open salamshaikh opened this issue 7 years ago • 0 comments

When I run the sample code with my subscription keys, I get the following error.

Error :

File "T.py", line 42, in output = json.dumps(json.loads(result), indent=4, ensure_ascii=False) File "/usr/lib/python3.5/json/init.py", line 312, in loads s.class.name)) TypeError: the JSON object must be str, not 'bytes'

salamshaikh avatar Jun 29 '18 13:06 salamshaikh