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); } }