- Contents
- Index
IC Interaction Designer Help
JSON Builder
This REST tool accepts a list of names, a list of values, and a list of value types to build a JSON object of name/value pairs. This tool builds the name/value pairs and inner JSON alphabetically by name. For more information, refer to the Interaction Designer REST APIs Developer's Guide in the PureConnect Documentation Library.
Inputs
Names List
The list of names. The length of this list must match the length of the list in the Values List parameter.
Values List
The parallel list of the value for each name in the Names List parameter. The length of this list must match the length of the list in the Names List parameter.
Value Type List
A parallel list of the object type for each output value found in the Values List parameter. The length of this list must match the length of the list in the Names List parameter.
Outputs
JSON string
The variable to store the output.
Exit Paths
Success
This path is taken if the operation is successful.
Failure
This path is taken if the operation fails.
List Length Not Equal
This path is taken if the lengths of the input lists are not equal.
Value Type Mismatch
This path is taken if a value cannot be converted to the listed data type.
Invalid Value Type
This path is taken if a data type provided by the Value Type List parameter does not match an accepted data type (for example, string, bool, double, float, int, array, or object).