def json_compat(response):
    """ Compatibility layer for requests JSON helper pre and post v1.0.0.
    """
    if callable(response.json):
        return response.json()
    else:
        return response.json