You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Introduction

This plugin was created to solve use cases where we need to format the JSON response of a JSON API call in order to store data into a form or workflow variable.

This plugin can be considered as an alternative to the default bundled JSON Tool.

The configurations are exactly similar to the default bundled JSON Tool in Joget, just with an additional optional property to write bean shell script to format/modify the JSON response.

The plugin source codes can be found at JogetOSS Github. Feel free to clone and customize to suit your needs.

Enhanced JSON Tool Properties

To learn how to configure the JSON Tool plugin, do see the KB page for JSON Tool.

This plugin's configuration is identical, only with the additional configurable properties below.

Format Response

NameDescription
Enable Response FormattingWhen checked, you can start writing bean shell script to format the JSON response.
Script

The "Enable Response Formatting" property must be enabled in order to write bean shell script here.


Download Sample App

APP_enhanced_json_tool-sampleApp.jwa

Notes:

  • This sample app already includes the Enhanced JSON Tool plugin. So just import into Joget and start using!
  • The API Domain Whitelist / API IP Whitelist setting in General Settings needs to be configured to allow JSON API requests.




  • No labels