# Get json webhook and make it string to send HTTP request

**URL:** <https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662>\
**Category:** Questions\
**Tags:** webhook, code\
**Created:** [January 10, 2023, 7:29pm UTC](https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662 "2023-01-10T19:29:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maor\_BNL](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maor_bnl/32/11580_2.png) [@Maor\_BNL](https://community.n8n.io/u/Maor_BNL)\
**Post date:** [January 10, 2023, 7:29pm UTC](https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662/1 "2023-01-10T19:29:33Z")

</div>

## Describe the issue/error/question

I am facing a problem that I am getting JSON from webhook successfuly and trying to use few fields to and make them variable to use it in http request

## Please share the workflow

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/e/be5e7890c211cbf55700526f9027d318291f65f8.png)  
trying to use this variables from webhook, I am new at n8n if somone can help I will be thankful

---

<div class="post-metadata">

**Author:** ![maxT](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/maxt/32/31233_2.png) [@maxT](https://community.n8n.io/u/maxT)\
**Post date:** [January 10, 2023, 11:41pm UTC](https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662/2 "2023-01-10T23:41:40Z")

</div>

Have you tried dragging and dropping the data onto the parameters in the node where you’re trying to use these variables?

You can hover on the key names (variable names) or column headings, then drag those onto parameters to map variables. Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![dickhoning](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/dickhoning/32/10415_2.png) [@dickhoning](https://community.n8n.io/u/dickhoning)\
**Post date:** [January 21, 2023, 5:40am UTC](https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662/3 "2023-01-21T05:40:23Z")

</div>

perhaps this sample may help …

In Code node:

```auto
return {"car_type": $input.all()[0].json.body.contact.variables.car_type}

```

In Set node:

```auto
{{ $json["body"]["contact"]["variables"]["car_type"] }}

```

---

<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:** [April 21, 2023, 5:40am UTC](https://community.n8n.io/t/get-json-webhook-and-make-it-string-to-send-http-request/21662/4 "2023-04-21T05:40:25Z")

</div>

Closed on April 21, 2023, 5:40am UTC

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