Why am I getting an unexpected token error in Shopify theme development?

Hi all, I am new to Shopify and theme development.

With the following JSON I get an error saying: ValidSchema: unexpected token at '{ in JSON.

Any suggestions on that? Kind regards, Jan

{% schema %}
{
“name”: “Kunstenaar”,
“class”: “section-kunstenaar”,
“settings”: [
{
“id”: “portret”,
“type”: “image_picker”,
“label”: “Foto kunstenaar”
},
{
“id”: “quote”,
“type”: “textarea”,
“label”: “Quote kunstenaar”,
“default”: “Quote”
}
],
“blocks”: [
{
“name”: “Alinea”,
“type”: “alinea”,
“settings”: [
{
“id”: “sub-heading”,
“type”: “text”,
“label”: “Heading”
},
{
“id”: “beschrijving”,
“type”: “richtext”,
“label”: “Biografie kunstenaar vervolg”,
“default”: “

Beschrijving…


}
]
}
],
“presets”: [
{
“name”: “Biografie Kunstenaar”,
“category”: “Custom”
}
]
}
{% endschema %}

Hi @BUROJAN ,

Please change code:

it should be the closing tag ‘

Hope it helps!

1 Like