// write root json element (because it has no name) void WriteJson::parse(const Root &object) { element = ""; element += "{"; object.accept(this); element += "}\n"; stream << element; }