...
Name | Description | |||||
---|---|---|---|---|---|---|
Enable Response Formatting | When checked, you can start writing bean shell script to format / post process the JSON response. | |||||
Script | The "Enable Response Formatting" property must be enabled in order to write bean shell script here. Injected Variables:
Expected Return Object: It is expected to return a Map object that would later on be processed as configured to store to form and/or workflow variables. Example: Return the response only for the first item in a JSON array with the object name of "apps".
|
Figure 1: Enable Response Formatting
Download Sample App
APP_jsonEnhanced_toolJSON_dx_kbTool.jwa
Notes:
- This sample app already includes the Enhanced JSON Tool plugin. So just import into your Joget server and start using.
- The API Domain Whitelist / API IP Whitelist setting in General Settings needs to be configured to allow JSON API requests, in order for this sample app to work.
...