Skip to main content

xfa_json/
lib.rs

1#![warn(missing_docs)]
2//! JSON-first API for XFA forms.
3//!
4//! Provides bidirectional conversion between XFA `FormTree` structures and JSON,
5//! with automatic type coercion, repeating section support, and schema export.
6//!
7//! # Examples
8//!
9//! ```
10//! use xfa_json::{form_tree_to_json, json_to_form_tree, export_schema};
11//! ```
12
13// Copyright (c) 2026 Innovation Trigger B.V.
14//
15// PDFluent is available under two licences, at your option: the GNU AGPLv3, or
16// the PDFluent Commercial Licence. See the LICENSE file in this repository --
17// that file travels with the copy you received, which a URL does not.
18
19mod coerce;
20pub mod export;
21pub mod import;
22pub mod schema;
23pub mod types;
24
25pub use export::form_tree_to_json;
26pub use export::form_tree_to_value;
27pub use import::json_to_form_tree;
28pub use schema::export_schema;
29pub use types::{FieldValue, FormData, FormSchema};