def save_to_log(array: list) -> list:
    """
    Only save certain elements to the event log. Such as the date_time,
    event name and event period.
    :param array: a list where certain data is collected from.
    :return new_array: contains a json formatted list.
    """
    new_array = []
    for col in array:
        temp = []
        for row in range(3):
            temp.append(col[row])
        # stores to new_array as json format
        new_array.append({"date_time": temp[0], "event_name": temp[1],
                          "event_period": temp[2]})
    return new_array