Webhook Respond JSON Data

Hello.

Sorry for this silly question but i can not return a valid json with all data from the Code Node via Webhook Respond Node.

Basically i want to return this JSON from the Webhook Respond Node:

I am really stuck :frowning:

image

Hi @Mulen,

replace the “return” in your code with the following:

return daysTest.map((value)=> {
  return {json:{value}}
})

This is going to output your 2 items as separate items :slight_smile:
Please let us know if it solved your problem :smile:

1 Like

I managed to solve it with a little bit of trial and error and the help of this post. I don’t know if it is the optimal solution but i get the results i want.

3 Likes

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