def convert_set_values_to_lists(endpoints):
    """
    To make our endpoint lists JSON serializable we need to convert the set values
    to lists
    :param endpoints: List of endpoint dictionaries
    """
    for endpoint in endpoints:
        for k, v in endpoint.items():
            if type(v) is set:
                endpoint[k] = list(v)
    
    return endpoints