JSON to XML converter step

Use this step to convert JSON to XML

Last published at: March 27th, 2025

Description:

This step converts JSON to XML. 

 

Inputs

  • inputJSON - Input JSON code
  • xmlOutputVar - variable/global to store XML result
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

Example:

Let’s build and execute the “clsJSONtoXMLconverterDef” example.          

  • Create a new definition called “clsJSONtoXMLconverterDef” 
  • Select the definition and click the “design” button
  • Drag a “clsJSONtoXMLconverter” step from the toolbox
  • Connect the dots between the start and “clsJSONtoXMLconverter” step 
  • Click the “clsJSONtoXMLconverter” step to configure its “Required” properties. Provide a name to the step. Provide the JSON code. Provide a variable/global reference to store the XML 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 JSON code is included here for reference. 
{"widget": {
    "debug": "on",
    "window": {
        "title": "Sample Konfabulator Widget",
        "name": "main_window",
        "width": 500,
        "height": 500
    },
    "image": { 
        "src": "Images/Sun.png",
        "name": "sun1",
        "hOffset": 250,
        "vOffset": 250,
        "alignment": "center"
    },
    "text": {
        "data": "Click Here",
        "size": 36,
        "style": "bold",
        "name": "text1",
        "hOffset": 250,
        "vOffset": 100,
        "alignment": "center",
        "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
    }
}}

 

  • 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 JSON code to XML 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.

Click here to download the sample file.

How can we improve this article?

Share additional info and suggestions