Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The result area are show [object Object],[object Object] instead of [{"k1": "v1"}, {"k2": "v2"}] #11775

Open
buildingwatsize opened this issue Nov 18, 2024 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@buildingwatsize
Copy link

Bug Description

The result area are show [object Object],[object Object] instead of [{"k1": "v1"}, {"k2": "v2"}] when expression value is the array of object type.

To Reproduce

  1. Go to editor canvas
  2. Add 1st-node Data transformation > Edit Fields (Set)
  3. Select mode json and expression then paste data below
{
  "list_of_object": [{
    "text": "Apple Pencil 2",
    "color": "White"
  }, {
    "text": "Computer Set ITX Gaming",
    "color": "Mixed"
  }, {
    "text": "DELL ALIENWARE 38 Curved Display",
    "color": "Black"
  }]
}
  1. Add next node for the 2nd like the 1st one, Data transformation > Edit Fields (Set)
  2. Select mode json and expression then paste data below
{
  "edit_list": {{ $json.list_of_object }}
}
  1. See the Result below textarea or open in the larger editor view (see more below)

Screenshot 2024-11-18 210325

Expected behavior

Show [{"k1": "v1"}, {"k2": "v2"}] when showing result for the array of object type. as the same as version 1.61 (my last version before I updated to 1.67.1)

Operating System

Docker Image Tag: 659517288a07

n8n Version

1.67.1

Node.js Version

20.18.0

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Nov 18, 2024

Hey @buildingwatsize,

We have created an internal ticket to look into this which we will be tracking as "GHC-456"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants