Task References

On this page:



The FlattenJSONFormInput task is used to convert the key-values of arrays that have a single value into simple key-value pairs.

Potential Use Case

Suppose you have a dataset that contains a cause and effect object expression and you want to break them down to appear as two key-values that pertain to one another. You can use the FlattenJSONFormInput task to convert the dataset expression and show cause and effect in a new expression that highlights both the cause and the effect as value pairs.


Input and output parameters are shown below.

Incoming Type Description
input Object Required. The JSON to be converted.

Outgoing Type Description
response Object A JSON key-value pair.


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


The expected response will be {"test": "a"} which now shows a simple key-value pair.