# Webhook Respond JSON Data

**URL:** <https://community.n8n.io/t/webhook-respond-json-data/29209>\
**Category:** Questions\
**Tags:** core\
**Created:** [August 10, 2023, 9:24am UTC](https://community.n8n.io/t/webhook-respond-json-data/29209 "2023-08-10T09:24:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mulen](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Mulen](https://community.n8n.io/u/Mulen)\
**Post date:** [August 10, 2023, 9:24am UTC](https://community.n8n.io/t/webhook-respond-json-data/29209/1 "2023-08-10T09:24:02Z")

</div>

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 ☹

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/c/bc5667bb3abdc7068f854bcc5de06c2abd52a278.png)

---

<div class="post-metadata">

**Author:** ![0xr](https://avatars.discourse-cdn.com/v4/letter/0/8dc957/32.png) [@0xr](https://community.n8n.io/u/0xr)\
**Post date:** [August 10, 2023, 9:37am UTC](https://community.n8n.io/t/webhook-respond-json-data/29209/3 "2023-08-10T09:37:17Z")

</div>

Hi @Mulen,

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

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

```

This is going to output your 2 items as separate items 🙂  
Please let us know if it solved your problem 😄

---

<div class="post-metadata">

**Author:** ![Mulen](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@Mulen](https://community.n8n.io/u/Mulen)\
**Post date:** [August 10, 2023, 9:46am UTC](https://community.n8n.io/t/webhook-respond-json-data/29209/4 "2023-08-10T09:46:33Z")

</div>

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.

> [@More then one item from the "Response Webhook" node](http://community.n8n.io/t/more-then-one-item-from-the-response-webhook-node/16385):
>
> Hello n8ners, I’m working with the “Response Webhook” note for the first time today. Take a look at the screenshot. When using expressions, note that this node will only run for the first item in the input data. This is exactly the result you get back. But as you can see there are more items what do I have to do to get the whole list? Many Thanks

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 17, 2023, 9:46am UTC](https://community.n8n.io/t/webhook-respond-json-data/29209/5 "2023-08-17T09:46:41Z")

</div>

Closed on August 17, 2023, 9:46am UTC

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