JSONata

Transform incoming data into a new form using JSONata

Component key: jsonata

Description#

The JSONata component allows you to use JSONata to transform data.

For example, suppose you had data that read:

{
"example": [{ "value": 4 }, { "value": 7 }, { "value": 13 }]
}

If you applied a JSONata expression that read $sum($example.value), this component would output 24.

Additional information about JSONata transforms is available in JSONata's documentation.

Actions#

Transform#

Transform data using JSONata | key: transform

InputKeyNotesExample

Data

text
/ Required
dataThis is an object with properties to feed into the JSONata expression.
{
"example": [{ "value": 4 }, { "value": 7 }, { "value": 13 }]
}

Expression

code
/ Required
expressionA JSONata expression used to generate a string.$sum($example.value)