The JSON Formatting Processor takes JSON input and converts it into the desired output Format.
Select the Processor Configuration tab and click on Add Processor.
Select the JSON Formatting Processor from the drop-down.
Using the Output Format selector, choose which output is desired:
- Expanded: Expanded output adds new line and tab characters to make the JSON more human-readable. It is recommended when writing out to a JSON file or when readability is most important. An example is shown below:
{ "example" : { "name" : "Steve", "age" : 25 } }
- Collapsed: Collapsed output removes all extra formatting characters, leaving a pure JSON string. It is recommended when the JSON will be processed further or sent elsewhere, like to a web service. An example is shown below:
{“example”:{“name”:”Steve”,”age”:25}}
In the Conditional Execution tab, you can set additional processor execution conditions. The Transaction data dependent condition may be specified here as enhanced expression. If this expression returns anything other than TRUE (ignore case) – this processor will be skipped. No additional configuration for this Processor is required.