Serialization¶
Convert AST trees to JSON strings.
std::string stringify(const Node& node);
Example:
Node report = div({
h1({ text("Dashboard") }),
LineChart({}, props({{"data", "[...]"} }))
});
std::cout << stringify(report);
Convert AST trees to JSON strings.
std::string stringify(const Node& node);
Example:
Node report = div({
h1({ text("Dashboard") }),
LineChart({}, props({{"data", "[...]"} }))
});
std::cout << stringify(report);