More compact JSON formatting.

This commit is contained in:
XMRig
2019-08-04 22:07:05 +07:00
parent cf4a5aa888
commit fefce7cc89
6 changed files with 16 additions and 5 deletions

View File

@@ -80,6 +80,8 @@ void xmrig::HttpApiResponse::end()
StringBuffer buffer(nullptr, 4096);
PrettyWriter<StringBuffer> writer(buffer);
writer.SetMaxDecimalPlaces(10);
writer.SetFormatOptions(kFormatSingleLineArray);
m_doc.Accept(writer);
HttpResponse::end(buffer.GetString(), buffer.GetSize());