FlattenJSONFormInput

The FlattenJSONFormInput task converts the key-values of arrays that have a single value into simple key-value pairs.

Potential use case

Suppose you have a dataset containing a cause-and-effect object expression and you want to break it down into two key-values that relate to each other. You can use FlattenJSONFormInput to convert the dataset expression and display the cause and effect as individual value pairs.

Properties

IncomingTypeDescription
inputObjectRequired. The JSON to convert.
OutgoingTypeDescription
responseObjectA JSON key-value pair.

Example

In this example, the input object expression is {"test":["a"]}.

FlattenJSONFormInput task with the input set to a single-value array

The response returns as {"test": "a"} — a simple key-value pair.

Outgoing response showing the flattened key-value pair