# I don't want the use of {{ in JSON to be interpreted as mapping

**URL:** <https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657>\
**Category:** Questions\
**Tags:** functions, mapping\
**Created:** [September 1, 2024, 9:43am UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657 "2024-09-01T09:43:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AS\_BG](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AS\_BG](https://community.make.com/u/AS_BG)\
**Post date:** [September 1, 2024, 9:43am UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657/1 "2024-09-01T09:43:31Z")

</div>

Hello everyone

As you will see below in the JSON, I first need to define a variable.

```auto
{
  "type": "image",
  "width": 1080,
  "height": 1080,
   "bgImageUrl": "https://example.com/image/example.png",
   "text": "Happy Coffees!",
   "textBgColor": "green"
  },

```

Later, I need to call this variable again within the same module or even within the same piece of code.

```auto
    "background": [
            "url": "{{bgImageUrl}}",
            "type": "image"
          ]

```

However, when I use {{ to call this variable, [Make.com](http://Make.com) interprets it as mapping and I am not able to call the variable in the code snippet. Is there a way to do this?

---

<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 1, 2024, 10:19am UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657/2 "2024-09-01T10:19:15Z")

</div>

Welcome to the Make community!

Try using the replace function to replace `%%bgImageUrl%%` into `{{bgImageUrl}}`

e.g.:

![Screenshot_2024-09-01_180932](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/a/7a299e1668a8305b02407ea5cfb13bd49e8b3731.png)

### Example output string

![Screenshot_2024-09-01_180944](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/c/8/c8672ca31938c315103d81e915771fb5322a45bd.png)

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

— @samliew

* * *

P.S.: Did you know, [the concepts](https://community.make.com/t/make-academy-course-overview/29699) of about 70% of questions asked on this forum are already covered in the [Make Academy](https://academy.make.com). Investing some effort into it will save you lots of time and frustration using Make later!

---

<div class="post-metadata">

**Author:** ![AS\_BG](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AS\_BG](https://community.make.com/u/AS_BG)\
**Post date:** [September 1, 2024, 12:09pm UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657/3 "2024-09-01T12:09:03Z")

</div>

Thank you. But is there any other way? Because variables are not consistent, changing for every runs so i can’t control the variable names that way.

---

<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 2, 2024, 3:34am UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657/4 "2024-09-02T03:34:17Z")

</div>

Just insert the variable name as a variable where the word variable is at in my example.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 16, 2024, 8:51am UTC](https://community.make.com/t/i-dont-want-the-use-of-in-json-to-be-interpreted-as-mapping/53657/5 "2024-09-16T08:51:20Z")

</div>


