Newline after JSON writes

This makes the API easier to debug using shell and cURL requests.