Quick repair #1

less JSON, edit output format, no global variable