got it, you just want to use the json libary for decoding instead of the requests library.
But if you would return the decoded json you don't have to change all keywords:

return json.loads(response.text)