support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Fix schema errors/guides/fix/unparsable-structured-data

Unparsable structured data: how to fix it on a Shopify store

Unparsable structured data is a syntax problem, not a missing field. Google could not read the block at all, so it cannot even tell what type it was meant to be. On Shopify the cause is usually one character in a Liquid template.

Short answer: The Unparsable structured data report lists blocks of schema Google could not parse because of a syntax error, such as a missing comma, a stray quote in a product title or a trailing comma left by a Liquid loop. Every item in the report is a critical error, and the whole block is ignored. On Shopify the usual fix is to output text values with Liquid's json filter and fix the comma logic in the theme or app snippet that produced the block.

What the report shows

Google's Unparsable structured data report help describes it as structured data that could not be parsed because of a serious syntax error, so Google cannot work out the intended type (Product, Organization and so on). Because of that, these errors do not show up in the Product snippets or Merchant listings reports. They have their own report, and every item in it is an error. There are no warnings or valid items.

The error types include:

  • Parsing error: Missing ',' or '}' - a comma or closing brace is missing.
  • Parsing error: Missing ',' or ']' in array declaration - usually a loop over images or variants.
  • Parsing error: Missing '}' or object member name - often a trailing comma before a closing brace.
  • Bad escape sequence in string - a backslash in a value that is not a valid JSON escape.
  • Invalid JSON document and Incorrect value type.
  • Duplicate unique property - for example two @context values in one object.

The usual Shopify causes

JSON-LD in a Shopify theme is built by Liquid, so the JSON is only as good as the template. The same few mistakes cause most unparsable errors:

  • Unescaped text. A template writes "name": "{{ product.title }}". A product called 12" Oak Board then breaks the JSON, because the inch mark ends the string early. Descriptions with quotes, backslashes or line breaks do the same.
  • Trailing commas. A loop over images, variants or breadcrumbs prints a comma after every item, including the last. JSON does not allow that.
  • Conditional fields. A field wrapped in {% if %} leaves a dangling comma when the condition is false, for example when a product has no SKU or barcode.
  • Liquid errors in the output. If a Liquid tag fails, the error text can end up inside the script tag.
  • Hand-pasted code. Schema copied from a tutorial into theme.liquid with curly "smart" quotes instead of straight ones.

How to fix it

The most reliable fix for text values is Liquid's json filter. It adds the quotes and escapes anything inside, so you do not write the quotes yourself:

<!-- Breaks on titles with quotes -->
"name": "{{ product.title }}",

<!-- Safe -->
"name": {{ product.title | json }},

For loops, only print the comma when it is not the last item:

"image": [
  {% for image in product.images %}
    {{ image | image_url: width: 1200 | json }}{% unless forloop.last %},{% endunless %}
  {% endfor %}
]

Then:

  1. Take an example URL from the report and paste the page source (or the single script block) into a JSON-LD checker. Our free JSON-LD checker shows the line where parsing fails.
  2. Find which file produced the block: search the theme code for application/ld+json, or switch app embeds off one at a time.
  3. Fix the template, test a product whose title or description contains quotes, then start Validate fix in Search Console.

Why it matters more than most warnings

A missing recommended field leaves the rest of the block working. An unparsable block is thrown away completely. If it was your only Product block, the page has no usable Product schema at all, so no price, availability or rating can be read from it. If it was your Organization block, your logo and social profiles are lost too.

Because the error is often triggered by specific product data (a quote in one title), the report may list only some product pages. The template is still broken; the other products just do not have the character that trips it.

Other things that break JSON-LD on Shopify

Beyond quotes and commas, a few less obvious problems turn up regularly in Shopify themes and app snippets:

  • Using escape instead of json. Liquid's escape filter is for HTML. It turns quotes into HTML entities, which are not valid inside JSON strings in the way people expect. Use json for values inside JSON-LD.
  • Line breaks and backslashes in descriptions. Product descriptions pasted from Word or another site often contain characters that break a hand-quoted string. strip_html on its own does not make text safe for JSON; follow it with json.
  • Metafield values. A metafield printed directly into JSON can contain anything a merchant typed. Treat it as text and use json.
  • Comments. JSON does not allow comments. A // note or /* ... */ left inside a script block makes it unparsable.
  • Two objects with nothing between them. If you want several items in one script tag, put them in an array or a @graph. Two objects placed back to back are not valid JSON.
  • Apps editing the same file. An app that inserts code into your theme can land in the middle of an existing script block.

A useful test: create a draft product with a title like Test "quote" \ backslash and a description with line breaks, preview it, and run the preview URL through a checker. If the schema survives that, it will survive most real product data.

How Schema Clinic helps

Schema Clinic's audit reads every JSON-LD block on the pages it scans, including blocks injected by apps after load when you use Deep Scan, and reports a block that will not parse as an Error with its source. That tells you whether to fix the theme, raise it with an app developer or remove leftover code from an uninstalled app.

On Pro, the generated schema is output by the Schema Clinic app embed, which uses Liquid's json filter for text values, so product titles and descriptions with quotes do not break it. Switching the embed off removes it again. If the broken block is in your theme, you or your developer still need to fix or remove it.

Questions people ask

Are unparsable structured data errors critical?
Yes. Every item in the Unparsable structured data report is an error. Google cannot read the block, so it is ignored entirely.
Why do only some of my product pages show the error?
Usually because the template breaks on certain data, such as a quote mark in a product title or a product without a SKU. The template is at fault, and only those products trigger it.
What is the quickest fix for quotes in product titles?
Output text values with Liquid's json filter, for example "name": {{ product.title | json }}. It adds the quotes and escapes special characters for you.
Can an app cause unparsable structured data?
Yes. Any app that adds JSON-LD to your pages can. Switch app embeds off one at a time and re-test to find which one, then contact its developer.
Does unparsable structured data hurt my rankings?
Structured data is not a direct ranking factor, so it does not lower rankings by itself. It does mean the broken block cannot be used for rich results.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic