"""
Created by Epic at 11/5/20
"""
from ujson import dumps

tokens = []

while True:
    worker_name = input("Name (cancel to cancel)> ")
    worker_token = input("Token> ")

    if worker_name == "cancel" or len(worker_name) == 0:
        print(dumps(tokens))
        break
    tokens.append({"name": worker_name, "token": worker_token})
