Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The JSON API in a process enables one to issue a JSON web service call, and to save the returned data into Joget's form data and/or into the process's workflow variable. Download the demo app to try it out on your Joget DX platform.

JSON Tool Properties

Configure JSON API for Mapping Tools to Plugins

Image Modified

Figure 1: Configure JSON API for Mapping Tools to Plugins


NameDescription
JSON URLURL to be called.
Call Type

Select the call type:

  • GET
  • POST

GET

 requests

 requests include all required data in the URL.

 GET

GET is less secure compared to POST because the data sent is part of the URL. So it's saved in browser history and server logs in plaintext.

In contrast,

 HTTP POST requests

 HTTP POST requests supply additional data from the client (browser) to the server in the message body. POST is a little safer than GET because the parameters are not stored in browser history or in web server logs. From here.

POST Method

Body Type

(Only Applicable to Call type = POST)

Select the post method:

POST
  • Request Parameters
  • POST Parameters as JSON Payload
  • Custom JSON Payload

Request Parameters

Add name(s) and value(s) to the request header

FieldDescription
NameName (or Type ) of the Request Header 
ValueLink or Value of the Request Header

POST Parameters

(Call type = POST)

When POST Method is set to "POST Parameters", these parameters will be sent as a UrlEncodedFormEntity.

When POST Method is set to "POST Parameters as JSON Payload", these parameters will be sent as a StringEntity in a form of an escaped JSON string.

Custom JSON Payload

Write your own JSON to be the payload. It will be sent as a StringEntity.

This option is available only when "Custom JSON Payload"

in

is selected.

Request HeadersAdd name(s) and value(s) to the request header.
No Response Expected

Check if no response is expected

,

so that even if there is a response, this tool will simply ignore it.

Using this option will also disable "store to form" and "store to workflow variable" properties.

Debug ModeShow relevant debug entries in the server log for debugging purposes.

Store To Form

Image Modified

Figure 2: Store to Form

NameDescription
FormSelect the target form to store data to.
Base JSON Object Name for Multirow DataName of the object that contains an array to be based on.
Field Mapping

Mapping with JSON data with Form fields.

NameDescription
Field NameForm field ID
JSON Object NameJSON property name

...

Store To Workflow Variable

Image Modified

Figure 3: Store to Workflow Variable

...