Transform (JSONata)

logic_transform · logic · Logic & Flow · Available · v1.1.0

Description

Reshape input JSON using a JSONata expression.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
expression
Espressione JSONata
codeyes
{ "name": firstName & " " & lastName, "ageNext": age + 1, "topOrders": orders[total > 100].id }
Espressione JSONata applicata all'intero payload `input`. Le funzioni built-in più usate: `$count()`, `$sum()`, `$average()`, `$map()`, `$filter()`, `$reduce()`, `$keys()`, `$lookup()`, `$merge()`, `$string()`, `$number()`, `$boolean()`, `$now()`, `$millis()`, `$fromMillis()`. Per debug: usa il playground su jsonata.org incollando l'input reale di un run precedente.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-logic_transform-1",
  "defId": "logic_transform",
  "label": "Transform (JSONata)",
  "config": {
    "expression": "{\n  \"name\": firstName & \" \" & lastName,\n  \"ageNext\": age + 1,\n  \"topOrders\": orders[total > 100].id\n}"
  }
}

🔗 Related nodes in the same category

Ready to use Transform (JSONata)?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes