Export form to JSON
To export a JSON form, go to the designer interface and click the blue menu button and select “Download”.
.json.
Get the form’s JSON in React component
If you need get the form’s JSON inside the React component body, you can use the IFormBuilder ref:Import form from JSON
To import a form in JSON format, select the blue menu button in the designer, and then select “Upload”.
Embedded JSON form editor
You can also edit the form data in JSON directly in the form designer. To do this, you need to click the “Edit JSON” button, as in the screenshot below.

JSON form description
Let’s take a look at what a JSON form is, below is an example:Version
This is the version of the form saved in JSON format. The list of possible versions is listed in PersistedFormVersion.Actions
A list of actions is simply a Record, the key in that Record is the name of the action, the value is the function body and function parameters.Types of error, modal and tooltip components
tooltipType- the name of the component type (usually the displayName of the React component) that displays the tooltip.errorType- the name of the component type (usually the displayName of the React component) that displays the error.modalType- the name of the component type (usually the displayName of the React component) that displays the modal window.
Form
This describes the form itself, which is represented by a component tree, see the ComponentStore type for more details. form is the root element of the component tree.Localization
The next set of data relates to localization.localization- a form localization data ( see LocalizationValue). The Fluent language is used for localization.languages- an array of languages that the form supports. The language is described by the Language type.defaultLanguage- the default form language, e.g. ‘en-US’.
JSON schema
You have the option to generate a JSON schema for your set of components used in the form. After generating the schema, you can connect it to your code editor and validate the JSON form using the IDE. Generation is performed using the createSchema function from the @react-form-builder/json-schema-generator package.

