Describe the problem/error/question
A code node with just this line -
return ['1','2','3','4'];
gives me a error “A ‘json’ property isn’t an object”
What is the error message (if any)?
“A ‘json’ property isn’t an object”
Returning an array is useful to use a batch node following the code node, or let the default n8n behavior where it runs the next node once for each item automatically (e.g save them to a database).
This used to be working in the 0.9.* versions before I recently upgraded to 1.1 version.
I hope it is still possible to return an array from a code node, and I am missing something small/obvious here.
Any help is appreciated, Thanks !
Information on your n8n setup
- n8n version: 1.1.1
- Running n8n via Docker compose