Data nodes
Reshape structured data. All output their result under result.
Parse JSON
@wf::data:json-parse · DataJsonParseNode
| Field | Type | Notes |
|---|---|---|
input | text | Required. JSON string to decode. Supports {{ }}. |
Fails on invalid JSON. Output: { "result": <decoded value> }
Stringify JSON
@wf::data:json-stringify · DataJsonStringifyNode
| Field | Type | Default | Notes |
|---|---|---|---|
input | json | — | Required. Value to encode. Supports {{ }}. |
pretty | checkbox | false | Pretty-print. |
Output: { "result": "<json string>" }
Select data
@wf::data:select · DataSelectNode
Picks values out of source using {{ item.* }} expressions (source is bound
as item).
| Field | Type | Notes |
|---|---|---|
source | json | The object to select from. |
map | json | Required. A single {{ item.path }} expression → one value; or a JSON object of output keys → expressions. |
Output: { "result": <selected value or object> }
['source' => '{{ nodes.fetch.body }}', 'map' => ['id' => '{{ item.id }}', 'email' => '{{ item.user.email }}']]
Merge data
@wf::data:merge · DataMergeNode
| Field | Type | Default | Notes |
|---|---|---|---|
a | json | — | Required. |
b | json | — | Required. Keys in b override matching keys in a. |
deep | checkbox | false | Merge nested arrays recursively instead of overwriting. |
Output: { "result": <merged> }
Flatten data
@wf::data:flatten · DataFlattenNode
| Field | Type | Notes |
|---|---|---|
source | json | Required. |
depth | number | Maximum depth to flatten. Blank = fully flatten. |
Output: { "result": [ ...flattened, re-indexed ] }