Skip to main content

xfa_json/
lib.rs

1//! JSON-first API for XFA forms.
2//!
3//! Provides bidirectional conversion between XFA `FormTree` structures and JSON,
4//! with automatic type coercion, repeating section support, and schema export.
5//!
6//! # Examples
7//!
8//! ```
9//! use xfa_json::{form_tree_to_json, json_to_form_tree, export_schema};
10//! ```
11
12mod coerce;
13pub mod export;
14pub mod import;
15pub mod schema;
16pub mod types;
17
18pub use export::form_tree_to_json;
19pub use export::form_tree_to_value;
20pub use import::json_to_form_tree;
21pub use schema::export_schema;
22pub use types::{FieldValue, FormData, FormSchema};