How to Fix Unparsable Structured Data in Google Search Console
Fix the Unparsable structured data error in Google Search Console. Find the broken JSON-LD, repair common syntax errors, and verify the fix with Google.

If Google Search Console reports Unparsable structured data, open the issue, pick an affected URL, and run that URL through Google’s Rich Results Test. Expand the error and inspect the rendered code around the highlighted line. Fix the JSON-LD where your site generates it, retest the affected URLs, then click Validate fix in Search Console.
The report appears when Google finds structured data it cannot parse. A missing comma or an unescaped quote can keep Google from identifying the type in that block. Once the syntax is fixed, the test may reveal issues with individual properties. See Google’s Unparsable structured data report documentation.
1. Find the broken JSON-LD block
In Search Console, open Unparsable structured data and select the error row. Copy an affected URL from the examples. If several URLs share the error, pick a few from the same page type. A broken product template can generate the same error across a catalog.
- Open the URL tab in the Rich Results Test, enter the affected URL, and run the test.
- Expand the syntax error and click the error description to jump to the relevant part of the rendered HTML. Check the preceding line too. A missing comma often shows up when the parser reaches the next property.
- If the page contains multiple
<script type="application/ld+json">tags, isolate the failing one. Test each suspect block in the Code tab, including its opening and closing script tags. Use the live URL test to verify the full page after deployment.
In the screenshot, the test is running in Code mode on a sample product named Trail Mug. To reproduce the error, paste this HTML into the Code tab. Then add the comma after "Trail Mug" and run the test again.
<!doctype html>
<html lang="en">
<head>
<title>Trail Mug</title>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Trail Mug"
"offers": {
"@type": "Offer",
"price": 24.00,
"priceCurrency": "USD"
}
}
</script>
</head>
<body>
<h1>Trail Mug</h1>
<p>$24.00</p>
</body>
</html>
If the live URL passes but Search Console still shows the error, compare the issue’s Last crawled date with the time you deployed the fix. Test other URLs in the report as well. The live test checks a page as it is served now, while Search Console shows findings from earlier crawls. Rich Results Test documentation
2. Fix the syntax error
The snippets below show the lines that change. In the live page, those fields belong inside the full JSON-LD object.
Missing comma or closing brace
For Parsing error: Missing ',' or '}', check where two properties meet. Add a comma between them, or close an object with } if it ends there. In this example, the test can flag "offers" because the previous line is missing a comma.
Trailing comma
Remove a comma before a closing } or ] when no item follows it. This often happens when a template emits a comma for an optional field that ends up empty.
Unescaped quotation marks
A literal double quote ends a JSON string. Escape quotes inside a value with \", or let a JSON serializer handle the escaping. A title or description can contain quotes even when most pages using the same template pass.
Invalid backslash escape
If the report says Bad escape sequence in string, look for a backslash followed by a character JSON does not recognize as an escape. For example, \q is invalid. To store a literal backslash followed by q, the JSON source needs \\q.
3. Fix the template that generates the markup
If multiple pages share the error, find the theme, plugin, component, or tag that emits the block. Inspect the HTML those pages actually serve. The CMS editor can show a clean description while the generated script contains broken quotes.
Build an object from the same data you display on the page. In a JavaScript template that embeds JSON-LD directly in HTML, serialize the object and escape literal < characters so a value containing </script> cannot end the element early.
const schema = {
"@context": "https://schema.org",
"@type": "Product",
name: product.name,
description: product.description,
};
const jsonLd = JSON.stringify(schema).replace(/</g, "\\u003c");
Use your framework’s HTML-safe JSON embedding method if it provides one. To catch regressions, run JSON.parse on the script content extracted from rendered test pages. Include page data with double quotes, backslashes and optional fields. Then validate the markup against the requirements for its type. For example, a Product block may parse successfully and still be missing the data Google requires for a product snippet. See the Product schema guide.
4. Retest the affected URLs and validate the fix
- Deploy the template change and rerun the Rich Results Test in URL mode. Include the original failing URL and other pages that use the same template.
- Check that the syntax error has cleared. Open the detected item and review any critical issues that become visible once Google can parse it.
- Return to the specific issue in Search Console and click Validate fix once you have fixed the affected pages. Google checks the issue across known affected URLs. The live test can pass while the report is still waiting for Google to confirm the fix.
In the Trail Mug example, adding the comma cleared the parsing error. Google then found a valid item for Product snippets, with non-critical issues, and an invalid item for Merchant listings. Each feature applies its own requirements after the JSON-LD parses.
If the same JSON-LD is generated across many pages, run a site scan to look for other affected URLs. For pages that add structured data through JavaScript, verify the rendered HTML in Google’s test. A checker that reads the initial HTML may see a different set of blocks. Google’s guide to JavaScript-generated structured data
What if Google reports an invalid item after the syntax fix?
Open the item and read the field-level issue. A missing required property is a separate check that Google can perform once it can read the JSON-LD. Use the common schema markup errors guide to diagnose missing fields, wrong value types and other validation errors. Passing the test makes the page eligible for the supported rich result when it meets Google’s requirements. Google decides whether to display that result for a search. Google’s structured data guidelines