Add newline to the end of exported json files

1) Some text editors add missing newline at the end of the file
automatically.
2) It's generally a nice thing to do, like not messing up the
display when cat'ing a file.

Change-Id: I3a85eae1d4e27094eac3321fa83183fce29916ba