When you select data to reuse you can choose between providing data in JSON or plain format
["value"]
→ "value"
[1, 2, 3]
→ 1
JSON
or JSON first result
) works best as the optimal approach depends on the data structure and requirements.itemsSelected
and itemsChecked
references. All other references for these inputs look the same.
firstFile
reference, there is no difference between this reference and JSON first result
.
JSON first result
is specifically designed for user variables and webhook variables that often contain API response data.
JSONPath | Sample JSON | JSON first result output | JSON | Plain |
---|---|---|---|---|
$.values | { "values": [1, 2, 3] } | [1,2,3] | [[1,2,3]] | 1,2,3 |
$.users[*].id | { "users": [{"id": 1}, {"id": 2}] } | 1 | [1,2] | 1,2 |
$ | { "a": 1 } | { "a": 1 } | [{ "a": 1 }] | { a: 1 } |
Non-existent path | $.missing | null | [] | |
$.active | { "active": true } | true | [true] | true |
$.[*] | [{"user_id": 123, "name": "John"}] | {"user_id": 123, "name": "John"} | [{"user_id": 123, "name": "John"}] | {"user_id": 123, "name": "John"} |