Question : the JSON object must be str, bytes or bytearray, not TextIOWrapper
Answered by : sunday-brian
with open(file_path) as f: data = json.loads(f.read()) print(data[0]['text'])
Source : https://stackoverflow.com/questions/47857154/how-to-read-json-object-in-python | Last Update : Tue, 14 Feb 23