Skip to main content

render_json

Function render_json 

Source
pub fn render_json(file: &AgmFile) -> String
Expand 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.