From 0bc2b3ab1bd5d4cf8ee0c2fb31d8c820cffd4453 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 14 Jun 2018 21:02:12 +0300 Subject: [PATCH] Update toSimpleString to use a the new builder API --- library/include/jsoncpp-ex.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/include/jsoncpp-ex.h b/library/include/jsoncpp-ex.h index 4d703a8d9..78f81c0e4 100644 --- a/library/include/jsoncpp-ex.h +++ b/library/include/jsoncpp-ex.h @@ -24,8 +24,10 @@ namespace Json { inline std::string toSimpleString (const Json::Value &val) { - Json::FastWriter w; - return w.write(val); + StreamWriterBuilder builder; + builder["commentStyle"] = "None"; + builder["indentation"] = "\t"; + return writeString(builder, val); } }