Why Is Broken JSON-LD Worse Than No JSON-LD?
Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: Broken JSON-LD is worse than none for one organisational reason: absent markup shows up in every audit as a gap to fix, while broken markup shows up in your admin as 'installed' — so the store believes it is covered while every agent discards the block whole. A single trailing comma or unescaped quote invalidates the entire block; AXO's structured-data dimension withholds its 30 validity points when any block fails to parse, mirroring agent behaviour. The cure is mechanical: generate with a JSON encoder and parse-check every block automatically. See your blocks' verdict in the free audit.
What counts as broken JSON-LD?
JSON-LD is broken when the contents of an application/ld+json script block are not valid JSON — typically from trailing commas, unescaped quotes inside interpolated values, single-quoted strings, or truncated generation. A broken block is not partially read: parsers reject it entire, so every fact it carried vanishes for every consumer.
The mechanics of total discard
JSON parsing is all-or-nothing by design. A parser reads the block as one document; the first syntax error ends the parse, and the consumer receives nothing — not the fields before the error, nothing. Contrast with HTML, where browsers repair errors and render something. Merchants raised on forgiving HTML consistently underestimate JSON's strictness: the block that 'looks fine' with one trailing comma is, to every parser on earth, an empty block with extra steps.
The usual breakers, in order of frequency in the wild: values interpolated without encoding (a product name containing a double quote ends a string early), trailing commas left by template edits, HTML entities substituted into the block by a well-meaning CMS filter (" is not a quote to a JSON parser), and truncation when a page builder clips long script contents. Each is invisible in the rendered page. The block could be broken for a year and no human would ever see a symptom.
The organisational damage: false coverage
Now the 'worse than none' argument. A store with no JSON-LD knows its state: audits show zero, roadmaps include the work, expectations are calibrated. A store with broken JSON-LD has a line item marked done. Its audits are the only instruments that can contradict the belief — AXO's findings say '1 block fails to parse' in so many words — but stores that believe themselves covered audit less often and read findings less carefully.
Meanwhile the consequences compound silently: agents discard the block, fall back to scraping, misread the sale price the block was supposed to clarify, and downgrade the store. The merchant experiences this as 'agents just don't work for us' — a conclusion about the channel, drawn from a syntax error. Few bugs in commerce have a worse ratio of triviality to blast radius.
How AXO scores invalidity
The structured-data dimension awards 30 points for blocks being present, then 30 for validity — withheld entirely if any block fails to parse, with a finding counting the failures. One broken block among three therefore costs the same validity points as three broken blocks. That severity is a faithful model: consumers discard per block, but the store's data discipline is judged per page, and a page shipping any invalid structured data is a page whose pipeline lacks a parser check.
The scoring also refuses partial credit for the fields inside a broken block: its @context and @type earn nothing, because no consumer can read them either. Harsh, and correctly so — the audit is simulating readers, not grading effort. The scoring guide lays out the full arithmetic.
Where breakage enters: a field guide
Hand-written blocks in theme files break when edited by hand later — the trailing comma is an editor's souvenir. App-injected blocks break when the app's generator meets data it did not expect (the quoted nickname, the ampersand, the emoji in a product name) — which means breakage correlates with exactly the products whose names are most distinctive. Blocks assembled by string concatenation in templates break on schedule, at scale, one product at a time.
The pattern across all three: breakage enters wherever JSON is produced by something that is not a JSON encoder. The permanent fix is therefore not care but architecture: one generation path, through a real encoder, for every block on the site. Care is a mood; encoders are a mechanism. The canonical block guide describes the consolidated architecture that makes this practical.
The parser check that ends it
Extract every ld+json block from rendered pages and run each through a JSON parser, failing loudly on any error. Run it in CI against template fixtures, and run it as a smoke check against live pages after deployments. The check is twenty lines in any language and has no false positives worth the name — a block either parses or it does not. Stores that adopt it move broken JSON-LD from a lurking condition to a build error, where it belongs.
Pair the syntax check with a semantic spot-check: the parsed block actually contains @type Product and an offers price matching the page, on one product per template. Syntax validity is necessary, not sufficient — a perfectly valid block can still state a wrong price — but validity is the gate everything else passes through. The validation guide assembles both checks into a routine.
Recovery: finding and fixing your broken blocks today
Paste your key templates' pages into the free audit and read the structured-data findings: the count of unparseable blocks is stated plainly. Then extract the offending block (view source, find the ld+json script) and run it through any JSON validator to see the exact failure position. Fix the generator, not the instance — patching one product's name to remove a quote treats a symptom and abandons the next product.
Re-audit to confirm validity points return, and add the parser check before you celebrate. The emotional arc of this fix is always the same: disbelief ('we installed that app months ago'), a validator's red highlight, ten minutes of work, and a dimension jumping by 30 points. It is the cheapest large score movement in the entire AXO system, hiding inside a comma.
The 5-action broken-block recovery
- Audit every template and note any 'fails to parse' findings with their counts.
- Extract and validate the offending block to find the exact syntax failure — never guess.
- Fix the generator: route all JSON-LD through a real JSON encoder; do not patch individual product data.
- Add the parser check to CI and post-deployment smoke tests so invalid blocks cannot ship again.
- Re-audit the same pages and confirm the validity points and findings clear.
Worked example: the comma that ate a catalogue
Example — fictional, for illustration. A homeware store's SEO app generates JSON-LD by string template. In October, a seasonal product launches with a name containing a quoted phrase — the 'Cozy' Throw. The quote ends a JSON string early; the block is invalid from that day. Because the app injects the block site-wide using catalogue data, the corruption pattern spreads as more quoted-name products are added. By January, 38 of 410 product pages carry invalid blocks. The store's agent traffic quietly halves; no dashboard shows why.
The January audit names it in one line: blocks failing to parse. The fix is an afternoon: the app is replaced by theme-generated blocks through a proper encoder, a parser check joins the deployment pipeline, and re-audits show structured data restored to 100 across templates. The store's retrospective line deserves framing: 'We did not have a structured-data problem. We had a punctuation problem with a six-figure blast radius.' Validation is cheap. Discovering you needed it is the expensive way to learn.
Related guides and the standing invitation
Companion reading for this topic: How Do You Validate JSON-LD Before Agents Discard It? · How Many JSON-LD Blocks Should a Page Have? · Why Does JSON-LD Matter for Shopping Agents? · What Do @context and @type Mean in JSON-LD?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.
Sources
- JSON-LD 1.1 — W3C Recommendation — the W3C Recommendation (2020) defining the JSON-LD syntax the markup in this guide uses.
- Product structured data — Google Search Central — Google Search Central's documentation for Product markup — how Google reads and validates it (current as of 2026).
- Schema.org — Product — the Schema.org vocabulary entry for Product — the type and properties this guide's markup names (current as of 2026).
Frequently asked questions
Why is broken JSON-LD worse than having none?
Because absence is visible and gets fixed, while breakage hides behind the belief that markup is installed. Every consumer discards the invalid block whole, so the store gets none of the benefit while skipping the remediation an honest zero would trigger.
What breaks JSON-LD most often?
Values interpolated without a JSON encoder — product names containing quotes are the classic case — plus trailing commas from hand edits, HTML entities substituted by CMS filters, and truncated blocks from page builders.
How does AXO score a page with one broken block among valid ones?
Presence points stand, but the structured-data dimension's 30 validity points are withheld when any block fails to parse, and a finding counts the failures. The broken block's @context and @type also earn nothing, since no consumer can read them.
How do I find the exact error in a block?
Extract the block's contents from the page source and run them through any JSON parser or validator — it will report the failure position. Then fix the generator that produced it, not just the instance.
What prevents recurrence?
Two mechanisms: generate all JSON-LD through a real JSON encoder (never string concatenation), and parse-check every ld+json block in CI and after deployments. Together they move invalidity from a lurking condition to a build error.