# Improve JSON in Body for a HTTP Request

**URL:** <https://community.make.com/t/improve-json-in-body-for-a-http-request/54238>\
**Category:** Questions\
**Tags:** oauth, error, http, connections, json, api\
**Created:** [September 6, 2024, 12:42pm UTC](https://community.make.com/t/improve-json-in-body-for-a-http-request/54238 "2024-09-06T12:42:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![expressyourself](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@expressyourself](https://community.make.com/u/expressyourself)\
**Post date:** [September 6, 2024, 12:42pm UTC](https://community.make.com/t/improve-json-in-body-for-a-http-request/54238/1 "2024-09-06T12:42:29Z")

</div>

Hi community,

I have been getting this error when I run the HTTP module

```auto
	{"message":"Unexpected token \n in JSON at position 134","error":"Bad Request","statusCode":400}

```

[blueprint.json](https://community.make.com/uploads/short-url/23Ai1kkwlEAlAtJgjtlahyQcSPu.json) (56.9 KB)

Can you please advise?

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [September 6, 2024, 1:15pm UTC](https://community.make.com/t/improve-json-in-body-for-a-http-request/54238/2 "2024-09-06T13:15:53Z")

</div>

Welcome to the Make community!

Looks like the input JSON is incorrect. You need to escape the special characters in each of the variables, using a “Transform to JSON” module. Then map the transformed variables into the HTTP module.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the [Make Academy](https://academy.make.com) will save you lots of time and frustration using Make.

---

<div class="post-metadata">

**Author:** ![expressyourself](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@expressyourself](https://community.make.com/u/expressyourself)\
**Post date:** [September 13, 2024, 5:33pm UTC](https://community.make.com/t/improve-json-in-body-for-a-http-request/54238/3 "2024-09-13T17:33:04Z")

</div>

> [@samliew](#):
>
> Looks like the input JSON is incorrect. You need to escape the special characters in each of the variables, using a “Transform to JSON” module. Then map the transformed variables into the HTTP module.

Thanks a lot.

How did I miss this, otherwise I would have responded sooner.

When you say “escape the special characters in each of the variables, using a “Transform to JSON” module” do you mean have multiple transform to JSON modules or a single one?

I will try this out though. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/9786f7887a39f4a0fef4d09346ab5b54ce20222b.svg) [@system](https://community.make.com/u/system)\
**Post date:** [October 13, 2024, 5:33pm UTC](https://community.make.com/t/improve-json-in-body-for-a-http-request/54238/4 "2024-10-13T17:33:36Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.

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