def json_or_empty(response):
    """
    Return response JSON as python dict or empty dict.

    :param response:
    :return:
    """
    response_json = {}
    try:
        response_json = response.json()
    except Exception:
        pass
    return response_json