Change the remaining response.text to response.json()