Code node is giving the error ERROR: A 'json' property isn't an object when there’s no reason for it to. It can also be seen in the console that the json data seems to be properly structured.
Upon further investigation, the input data’s structure (Array in the root level) in this case, seems to be responsible for this scenario (in conjunction with the Code node).
Hi @shrey-42, I am sorry you’re having trouble. I just tried reproducing this on my end, but the Code node in the below example workflow runs fine for me on [email protected]:
Hi @shrey-42, this looks like your custom node returns an invalid data structure.
This is no longer supported by the Code node and the value of json has to be an object rather than an array (see Data structure - n8n Documentation for an example). So you’d need to change your node to return a suitable data structure. For example: