# Issues Parsing JSON String and Returning JSON Object in Custom JS Module

**URL:** <https://community.make.com/t/issues-parsing-json-string-and-returning-json-object-in-custom-js-module/59658>\
**Category:** Questions\
**Tags:** json\
**Created:** [November 4, 2024, 11:24am UTC](https://community.make.com/t/issues-parsing-json-string-and-returning-json-object-in-custom-js-module/59658 "2024-11-04T11:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![AdamZ](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@AdamZ](https://community.make.com/u/AdamZ)\
**Post date:** [November 9, 2024, 5:57pm UTC](https://community.make.com/t/issues-parsing-json-string-and-returning-json-object-in-custom-js-module/59658/6 "2024-11-09T17:57:25Z")

</div>

@samliew can you please help me with this issue, not sure if you work with [make.com](http://make.com) since you help a lot but my last post may not have been quite so clear. Basically I could parse to json the long string variable I mentioned but rather than it being a single json object or something that I can input into the custom js module, it just give me those 3 individual variables as shown in the above screenshot.

I think the only thing that could work is trying to parse it within the code but that kept giving me errors.

Following this in a related post you responded to:

> [@How to input multiple variables for Custom JS Module](https://community.make.com/t/how-to-input-multiple-variables-for-custom-js-module/59924/2):
>
> To pass more than one variable to the CJS module, you will need to use VALID JSON. e.g.: { "variable1": {{2.variable1}}, "variable2": {{2.variable2}} } How to use the Custom JS module? Map a variable (or a JSON object) into the “Input” field. Write a function to do something with the input variable. If the input is a JSON, you can reference object properties using dot notation. Write a final statement to return the call of the function you wrote. Further Information I…

You mentioned about passing all of the variables into a single json object, should I make all of them a json object first following this?

---

_[View the full topic](https://community.make.com/t/issues-parsing-json-string-and-returning-json-object-in-custom-js-module/59658)._
