Do not format JSON output, jq can do that if needed

This commit is contained in:
Uwe Seimet 2023-11-17 09:17:32 +01:00
parent 9164a53658
commit 4d6a645b72
1 changed files with 1 additions and 3 deletions

View File

@ -360,9 +360,7 @@ int ScsiCtl::ExportAsBinary(const PbCommand &command, const string &filename) co
int ScsiCtl::ExportAsJson(const PbCommand &command, const string &filename) const
{
string json;
JsonPrintOptions options;
options.add_whitespace = true;
MessageToJsonString(command, &json, options);
MessageToJsonString(command, &json);
ofstream out(filename);
out << json;