This whole function is not needed. `requests.Response.json` is always a method and should be called. It was old version of `requests` that provided `json` **property** on the response class.