Add newlines only when encoding is json or json-verbose