Description:
This step converts XML to JSON.
Inputs
- inputXML - Input XML code
- jsonOutputVar - variable/global to store JSON result
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “clsXMLtoJSONconverterDef” example.
- Create a new definition called “clsXMLtoJSONconverterDef”
- Select the definition and click the “design” button
- Drag a “clsXMLtoJSONconverter” step from the toolbox
- Connect the dots between the start and “clsXMLtoJSONconverter” step
- Click the “clsXMLtoJSONconverter” step to configure its “Required” properties. Provide a name to the step. Provide the XML code. Provide a variable/global reference to store the JSON result. Click the Save button.

- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

- The XML code is included here for reference.
<widget>
<debug>on</debug>
<window title="Sample Konfabulator Widget">
<name>main_window</name>
<width>500</width>
<height>500</height>
</window>
<image src="Images/Sun.png" name="sun1">
<hOffset>250</hOffset>
<vOffset>250</vOffset>
<alignment>center</alignment>
</image>
<text data="Click Here" size="36" style="bold">
<name>text1</name>
<hOffset>250</hOffset>
<vOffset>100</vOffset>
<alignment>center</alignment>
<onMouseUp>
sun1.opacity = (sun1.opacity / 100) * 90;
</onMouseUp>
</text>
</widget>
- Save the process definition, create a new instance, and execute. Render the process instance. Click on the process step to view its properties. The step should convert the XML code to JSON and store the result in the variable/global as configured.

Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.