Closed deepsource-autofix[bot] closed 9 months ago
The json module provides two ways to read JSON data: a .loads() method that accepts a JSON string, and a .load() method, that works on files directly. So instead of reading a file manually and passing it to json.loads(), it is
json
.loads()
.load()
json.loads()
The
json
module provides two ways to read JSON data: a.loads()
method that accepts a JSON string, and a.load()
method, that works on files directly. So instead of reading a file manually and passing it tojson.loads()
, it is