fixes #10: json output now fully valid (finally)