pub fn render_json(file: &AgmFile) -> StringExpand description
Pretty-prints the AgmFile AST as JSON using serde_json.
This is a direct serialization of the Rust model types. It preserves
serde field names (e.g., "node" for id, "type" for node_type).
Optional fields set to None are omitted. span is skipped.