https://researchdatapod.com/how-to-solve-python-typeerror-the-json-object-must-be-str-bytes-or-bytearray-not-textiowrapper/
How to Solve Python TypeError: the JSON object must be str, bytes or bytearray, not 'TextIOWrapper'