split token by newline, send json encoded list as param