To JSON

To JSON component lets you create structured JSON outputs by binding input values to fields of your choice

Node Definitions

To JSON has no unique node definition to be configured, you can give it a name and a description:

Input Ports

You can define input ports to To JSON component, to use their values in your output's json configuration. In your output's json configuration screen, you can click on your input ports to get a text looking like:

getInputValueById('input_port_id')

Therefore, you can define as many input ports as you like, and you can use any of those input ports in any of your outputs

Output Ports

Your output ports will be available for a manual configuration. Once you add your output ports, you will see that you can click on Configure Output button to configure the structured json for that output port

When you click on Configure Output, you will see a screen split to two. On left-hand side you will see your input ports, and on the right-hand side you will see a JSON configuration area.

You can construct your JSON in this configuration area, and you are free to use nested JSONs, arrays, texts, numbers etc. By clicking the copy button near the input ports' name, you can use the input's value in your JSON.

System Ports

For more information read here

Working Example

Last updated