Respond to webhook with json data

Hi there
I am trying to run an n8n workflow via, and I’m struggling with the JSON response, and I’m not sure what should I fill inside this field when I don’t want only the first item to be returned

Seeing as you only have those two fields, try using just {{ $json }} or {{ JSON.stringify($json) }}. You probably want to set Respond With to JSON too.

Hey @productowl, welcome to the community! If I’m understanding you right, you’re trying to return all items to your Webhook instead of just responding once per item, am I right?

I guess the best way would be to use the Item Lists node to aggregate your data before you respond to your Webhook. Like so:

The format on how you want to respond depends on your Webhook of course.

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