how to read json object in python

You should pass the file contents (i.e. a string) to json.loads(), not the file object itself. Try this: There’s also the json.load() function which accepts a file object and does the f.read() part for you under the hood.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)