Skip to main content

form_tree_to_json

Function form_tree_to_json 

Source
pub fn form_tree_to_json(tree: &FormTree, root: FormNodeId) -> FormData
Expand description

Convert a FormTree into a JSON-friendly FormData structure.

Walks the tree starting at root, collecting field values keyed by their SOM-style dotted path (e.g., "form1.Customer.Name"). Repeating subforms become arrays.