1
0

CompositeChat: Use shorter JSON format.

This commit is contained in:
Mattes D 2016-12-15 20:25:02 +01:00
parent 0e3b3be766
commit c7ce9909c8

View File

@ -406,7 +406,14 @@ AString cCompositeChat::CreateJsonString(bool a_ShouldUseChatPrefixes) const
msg["extra"].append(Part); msg["extra"].append(Part);
} // for itr - Parts[] } // for itr - Parts[]
#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(); return msg.toStyledString();
#endif
} }