[fix] Properly format JSON written out to file. Fixes #13.

@jcrugzz @mmalecki @bmeck Turns out this whole time it was a simple one line fix.