misc cleanup of invalid JSON

Based on testing in http://jsonformatter.curiousconcept.com/