15 virtual rapidjson::Document* to_json()
const {
16 rapidjson::Document* json =
new rapidjson::Document();
18 this->write_into_json(*json, json->GetAllocator());
22 virtual void write_into_json(rapidjson::Value& json, rapidjson::Document::AllocatorType& allocator)
const = 0;