@ -96,7 +96,9 @@ def main():
clock.tick(60)
with open(outputfile, 'wt') as f:
json.dump(result, f)
# Use print or equivalent to have final newline.
to_output = json.dumps(result)
print(to_output, file=f)
pg.quit()