def get(attribute_name, json_response, default=None):
    """
    Retrieve attribute from a JSON response.
    :param attribute_name: Attribute name to get.
    :param json_response: JSON response.
    :param default: Value to return if the attribute is not found.
    :return: Attribute value.
    """
    return default if attribute_name not in json_response else json_response[attribute_name]