标签架构中的 JSON 无效

Sle*_*uue 1 schema json liquid shopify

嘿伙计们,我对 Shopify 真的很陌生。并尝试学习液体。我在 schema/ 中收到无效的 JSON 标记,但我不太确定它在哪里。我只是想拥有 4 个基本块,您可以将它们添加到下面带有图像和标题的部分。我现在没有制作内容块,因为我一开始就无法让图像工作。

{% for block in section.blocks %}
  <div class="grid-item" {{ block.shopify_attributes }}>
  {% case block.type %}
  {% when 'image' %}
    <img src="{{ block.settings.image | img_url }}">

</div>
  {% when 'text' %}
    {{ block.settings.content }}
  {% endcase %}
{% endfor %}

{% schema %}
  {
    {
    "blocks": [
      {
       "name": "Service",
       "limit": 4
       "settings": [
          {
          "type": "image_picker",
          "id": "image",
          "label": "image"
          }
        ]
      }
    ]
  }
  }
{% endschema %}
Run Code Online (Sandbox Code Playgroud)

再说一遍,就像我说的,我对这一切真的很陌生,所以任何正确方向或帮助的点都会非常棒!谢谢!

Dav*_*zar 5

你的 limit: 4 之后缺少一个逗号?