Create a JSON expression variable
- On the Type list, select JSON expression. (Default: String)
- Optional. To use the variable for process initialization, select Initialization.
-
In the
Expression text field, enter the JSON string, such as
$.person.name, or
$['person']['age'].
At runtime, the data is retrieved as John or 25 respectively.
-
To specify the source to use in the JSON variable, select a process or string variable in the
Source JSON field.
For example, use the following string variable: { "person" : { "name" : "John" , "age" : 25 , "city" : "New York" }, "company" : "kofax" }You can set the source variable of JSON expression as output to an activity. You cannot delete a source JSON variable if it is in use in JSON expression variable.
- On the Return data type list, select the return type of the XML expression which can use any of the following formats: Bool (default), Byte, Currency, Date, Decimal, Double, Float, Long, Short, or String.
- Click OK.
- Click Save.