# Passing output from Set Node into Http Request body

**URL:** <https://community.n8n.io/t/passing-output-from-set-node-into-http-request-body/8794>\
**Category:** Questions\
**Tags:** core\
**Created:** [Novembre 1, 2021, 5:29 UTC](https://community.n8n.io/t/passing-output-from-set-node-into-http-request-body/8794 "2021-11-01T05:29:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Hui](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Ben\_Hui](https://community.n8n.io/u/Ben_Hui)\
**Post date:** [Novembre 1, 2021, 5:29 UTC](https://community.n8n.io/t/passing-output-from-set-node-into-http-request-body/8794/1 "2021-11-01T05:29:30Z")

</div>

Is there a easy way to pass the full set ouput into the http request body field? I can add each name / value but have to also format it all which is kind of a pain. I have verified if I copy this full output into the body field it works perfectly.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/1f72f8e5515b6fbd293081e7f6003e738beaf75b.png)

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [Novembre 1, 2021, 9:19 UTC](https://community.n8n.io/t/passing-output-from-set-node-into-http-request-body/8794/3 "2021-11-01T09:19:08Z")

</div>

Hi @Ben_Hui, first of all, welcome to the community! I love the customized colour scheme from your screenshot!

So you’d essentially want to use key value pairs in the Set node which will then be used as the JSON body in an HTTP request, right? This should do the trick:

> **Example Workflow**
>

This example uses the **JSON/RAW Parameters** option offered by the HTTP Request node (to accept the body parameters as a JSON blob) and then just sets the body parameters to an expression consisting of the **$json** variable (which [contains the incoming JSON data of a node](https://docs.n8n.io/nodes/expressions.html#expressions)).

In this example workflow, this would be the body sent to Hookbin:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/4/4aab5d1a57f8de5d38f02aa36c190d79a5e3fad4.png)

---

<div class="post-metadata">

**Author:** ![Ben\_Hui](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@Ben\_Hui](https://community.n8n.io/u/Ben_Hui)\
**Post date:** [Novembre 1, 2021, 6:47 UTC](https://community.n8n.io/t/passing-output-from-set-node-into-http-request-body/8794/4 "2021-11-01T18:47:38Z")

</div>

Thank you so much… no need to json.stringify or any other work arounds. {{$json}} was all that was needed in the http body field. Awesome
