16 assert(pObj!=
nullptr);
22 output = writer.
write(serializeRoot);
29 assert(pObj!=
nullptr);
34 if (!reader.
parse(input, deserializeRoot))
virtual void serialize(Json::Value &root) const =0
static bool serialize(JsonSerializable *pObj, std::string &output)
bool parse(const std::string &document, Value &root, bool collectComments=true)
Read a Value from a JSON document.
static std::string const input
virtual void deserialize(Json::Value &root)=0
static bool deserialize(JsonSerializable *pObj, std::string &input)
std::string write(const Value &root) override
Serialize a Value in JSON format.
Unserialize a JSON document into a Value.
Writes a Value in JSON format in a human friendly way.