transform
Build a new object by mapping keys to JMESPath expressions
Creates an object where each key is the result of a JMESPath expression over the previous output (body.id, not previous.body.id). Run fields: {{input.*}} in other nodes — see How flows work.
Data
| Field | Type | Default | Description |
|---|---|---|---|
label | string | Optional UI label | |
map | object | {} | Output key → JMESPath expression |
Input / output
| Value | |
|---|---|
| Execute input | Previous node output (JMESPath root) |
| Output | New object with mapped keys |
Examples
Pick fields from nested data
Previous input:
{ "user": { "id": 1, "name": "Ada", "role": "admin" } }
{
"id": "shape",
"type": "transform",
"data": {
"map": {
"id": "user.id",
"name": "user.name"
}
}
}
Output:
{ "id": 1, "name": "Ada" }
From HTTP body
{
"map": {
"id": "body.id",
"email": "body.email",
"status": "status"
}
}
Array projection
{
"map": {
"names": "body.users[*].name",
"firstId": "body.users[0].id"
}
}
Empty map
{
"map": {}
}
Output: {}.