Re: Error: Invalid JSON: Unexpected Token

Solved

Why am I getting an 'Invalid JSON: Unexpected Token' error in my Envy theme settings?

saboor2772
Shopify Partner
2 0 0

My theme is Envy version 19.5.4. I am adding a code of different theme settings in the theme. but I have an error on setting schema JSON. I'm getting the Error: Invalid JSON: unexpected token error. I'm a saboor - but not a total newbie, so please help is appreciated.

 

this is the code:

{
"name": "custom image",
"settings": [
{
"type": "image_picker",
"id": "custom_image",
"label": "custom image",
"info": "set a custom image on theme file"
}
]

 

Accepted Solution (1)

jazz-jay
Shopify Partner
96 14 17

This is an accepted solution.

Hi,

 

Looks like you have a missing } at the end of your json. Add it and it should be ok.

banned

View solution in original post

Replies 3 (3)

jazz-jay
Shopify Partner
96 14 17

This is an accepted solution.

Hi,

 

Looks like you have a missing } at the end of your json. Add it and it should be ok.

banned
saboor2772
Shopify Partner
2 0 0

Thank you

IvGordiichuk
Shopify Partner
37 1 9
{
    "name": "custom image",
    "settings": [
            {
                "type": "image_picker",
                "id": "custom_image",
                "label": "custom image",
                "info": "set a custom image on theme file"
            }
        ]
}