Update toSimpleString to use a the new builder API

develop
Pauli 2018-06-14 21:02:12 +03:00
parent 2b79b4cce7
commit 0bc2b3ab1b
1 changed files with 4 additions and 2 deletions

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