JSON output is always the last line as it's coded in generate.py