12 using namespace jsoncollector;
22 output = writer.
write(serializeRoot);
34 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
virtual std::string write(const Value &root)
Serialize a Value in JSON format.
static bool deserialize(JsonSerializable *pObj, std::string &input)
Unserialize a JSON document into a Value.
Writes a Value in JSON format in a human friendly way.