Add trailing newlines and emit formatted JSON (#216)

4 files changed