How to fix this error " Invalid JSON in tag 'schema'" when i add a collapsible section?

The Command send me this message and can’t find any error

Invalid JSON in tag ‘schema’

{% schema %}
{
“name”: “my-collapsible”,
“settings”: [
{
“type” : “text”,
“id” : “caption”,
“label” : “write your caption”
},
{
“type” : “article”,
“id” : “heading”,
“label” : “heading”
}
],
“blocks” : [
{
“name”:“add my block”,
“type”:“collapsible”,
“settings” : [
{
“type” : “text”,
“id” :“coll_heading”,
“label” :“write your collapse”
},
{
“type” : “article”,
“id” : “coll_body”,
“label” : “write your body”
}
],

},
],
“presets”: [
{“name”: “my-collapseible”}
]
}
{% endschema %}

Try this:

{% schema %}
{
“name”: “my-collapsible”,
“settings”: [
{
“type”: “text”,
“id”: “caption”,
“label”: “write your caption”
},
{
“type”: “richtext”, // Consider using “richtext” for heading content
“id”: “heading”,
“label”: “heading”
}
],
“blocks”: [
{
“name”: “add my block”,
“type”: “collapsible”,
“settings”: [
{
“type”: “text”,
“id”: “coll_heading”,
“label”: “write your collapse”
},
{
“type”: “richtext”, // Consider using “richtext” for body content
“id”: “coll_body”,
“label”: “write your body”
}
]
}
],
“presets”: [
{ “name”: “my-collapseible” }
]
}
{% endschema %}

Hi @abdelrahman298

It seems that your issue has not been resolved yet, I suggest replacing the JSON snippet with

{% schema %}
{
  "name": "my-collapsible",
  "settings": [
    {
      "type" : "text",
      "id" : "caption",
      "label" : "write your caption"
    },
    {
      "type" : "article",
      "id" : "heading",
      "label" : "heading"
    }
  ],
  "blocks" : [
    {
      "name":"add my block",
      "type":"collapsible",
      "settings" : [
        {
          "type" : "text",
          "id" :"coll_heading",
          "label" :"write your collapse"
        },
        {
          "type" : "article",
          "id" : "coll_body",
          "label" : "write your body"
        }
      ]
   
    }
  ],
  "presets": [
    {"name": "my-collapseible"}
  ]
}
{% endschema %}

If it helps you, please like and mark it as the solution

Best regards.