JSON to XML converter step

Use this step to convert JSON to XML.

Last published at: August 6th, 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 process definition called “clsJSONtoXMLconverterDef” and open the definition in designer mode. 
  • Drag a “clsJSONtoXMLconverter” step to the canvas. 
  • Connect the dots between the “Start” and “clsJSONtoXMLconverter” steps, as shown above.  
  • Click the “clsJSONtoXMLconverter” step to configure its “Required” properties. Provide a name for the step. Provide the JSON code. Provide a variable or a global reference to store the XML result.  Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • 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 then execute it. Render the process instance. Click the process step to view its properties. The step should convert the JSON code to XML and store the result in the variable or global as configured. 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-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.