What = the JSON Raw Output?

Hello! Being driven slighly insane by this hehe.

I want to add key numbers to a JSON. My code below works fine:

However as a source my JSON comes from a previous node, so trying $("GetHomeTeam").all(), however this must not == the formatted JSON, because the output isn’t being processed:

What can I use to take the Raw JSON from my previous node into my new one? I think the error stems from the fact the keys are the same which n8n doesn’t like (it only sees one perhaps?)

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

You are missing the json key in the path of the incoming data.

(Ref: Data structure | n8n Docs)

So, in your case, you could start with this instead:

var jsonData = $("GetHomeTeam").all().map(i => i.json);

You beauty! Thankyou so much, saved me a long headache. You forgot the end quotemarks but I got it! :smiley:

1 Like

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