Fixed JSON formatting issue affecting Couch and Mongo sinks.