14 Json::StreamWriterBuilder Builder;
15 Builder[
"commentStyle"] =
"None";
16 Builder[
"indentation"] =
"";
17 return Json::writeString(Builder, a_Root);
26 Json::StreamWriterBuilder Builder;
27 return Json::writeString(Builder, a_Root);
36 Json::CharReaderBuilder Builder;
37 std::unique_ptr<Json::CharReader> Reader(Builder.newCharReader());
39 const char * Doc = a_JsonStr.data();
40 return Reader->parse(Doc, Doc + a_JsonStr.size(), &a_Root, a_ErrorMsg);
51 root[a_Key] = a_Value;
AString SerializeSingleValueJsonObject(const AString &a_Key, const AString &a_Value)
Creates a Json string representing an object with the specified single value.
AString WriteStyledString(const Json::Value &a_Root)
AString WriteFastString(const Json::Value &a_Root)
bool ParseString(const AString &a_JsonStr, Json::Value &a_Root, AString *a_ErrorMsg)