Add compatibility for versionf of requests that use response.json() instead of response.json