Ensured all outgoing streams are valid json for mode=json