Edit Fields action has improper JSON validation when the output is an array #12533
Closed as not planned
Closed as not planned
Description
Bug Description
When the Edit Fields action returns an array, there is an invalid error message in runtime:
The 'JSON Output' in item 0 does not contain a valid JSON object
even that the array is valid and in design time is properly visualized.
To Reproduce
- Connect the trigger to an Edit Fields action in JSON mode with value: {{ [ { "prop": 111}, { "prop": 222 } ] }}
- Start the workflow
Expected behavior
The Edit Fields action should return two objects.
Operating System
Ubuntu Linux
n8n Version
docker.n8n.io/n8nio/n8n:latest (1.72.1)
Node.js Version
?
Database
SQLite (default)
Execution mode
main (default)