[output:json] Fix comma in output
[output:json] Fix comma in output

Due to the JSON output module currently having a
custom JSON serialisation implementation, errors
can occur.

* Fix duplicate comma in output
* Use JSON.stringify when possible
* Add console warning if it is not possible

Fix #143
See #144

larsgw/citation.js,larsgw/citation.js