12 using namespace jsoncollector;
21 output = writer.
write(serializeRoot);
32 if (!reader.
parse(input, deserializeRoot))
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 serialize(Json::Value &root) const =0
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.