Ensure we output valid JSON
Add test for valid JSON
Merge pull request #75 from parallax/bugfix-valid-json

Make sure we output valid JSON