CompositeChat: Use shorter JSON format.
This commit is contained in:
parent
0e3b3be766
commit
c7ce9909c8
@ -406,7 +406,14 @@ AString cCompositeChat::CreateJsonString(bool a_ShouldUseChatPrefixes) const
|
||||
msg["extra"].append(Part);
|
||||
} // for itr - Parts[]
|
||||
|
||||
return msg.toStyledString();
|
||||
#if 1
|
||||
// Serialize as machine-readable string (no whitespace):
|
||||
Json::FastWriter writer;
|
||||
return writer.write(msg);
|
||||
#else
|
||||
// Serialize as human-readable string (pretty-printed):
|
||||
return msg.toStyledString();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user