pub fn form_tree_to_json(tree: &FormTree, root: FormNodeId) -> FormDataExpand 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.