Remove all newlines from json output.