I'm a stickler for consistency and I noticed that sometimes we are using r.json() and other times json.loads() . Since requests already supports JSON, I don't think it is necessary to import json as well. This PR makes the change to use the json() method of the requests library instead of json.loads().
I'm a stickler for consistency and I noticed that sometimes we are using
r.json()
and other timesjson.loads()
. Sincerequests
already supports JSON, I don't think it is necessary to importjson
as well. This PR makes the change to use thejson()
method of therequests
library instead ofjson.loads()
.