JSON.parse (and other functions) not working in Manual Set nodes

Describe the problem/error/question

upd. Other functions like .split() also results in string, not in other type (array here)

JSON.parse not working for Set nodes in Manual mode.

It’s fine for JSON Output

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.8.2
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker compose
  • Operating system: Ubuntu 22

hi @artildo

Change type:String to type:Object in the Set node to return Object instead of string

1 Like

@barn4k Oh, I see. In the previous version of Set, it was went fine with the String type.

Now, using the Object type, I even don’t need the JSON.parse() part.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.