Skip to content

Edit Fields action has improper JSON validation when the output is an array #12533

Closed as not planned
@tszalaj

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

  1. Connect the trigger to an Edit Fields action in JSON mode with value: {{ [ { "prop": 111}, { "prop": 222 } ] }}
  2. 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)

Metadata

Assignees

No one assigned

    Labels

    in linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions