FlattenJSONForminput
  • 23 May 2023
  • Dark
    Light
  • PDF

FlattenJSONForminput

  • Dark
    Light
  • PDF

Article summary

FlattenJSONFormInput Task Purpose

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.

Properties

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.

Example

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

flattenJSON-ex01

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

flattenJSOn-ex02


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.