Google Rich Results Test Error: Unparsable Structured Data (Invalid JSON-LD)
Unescaped quotes, control characters, or trailing commas inside `<script type="application/ld+json">`.
Runs locally in browser
Free · No login
Independently Verified 2026-11-25
v4.1.0
Identifier: Google Rich Results Test Error
Platform: SEO
Common Root Causes:
- Unescaped quotes, control characters, or trailing commas inside `<script type="application/ld+json">`.
Interactive Diagnostic Checklist
Verified Solutions:
- Serialize JSON-LD via `JSON.stringify()` with `</script>` escaped (`<\/script>`) and validate in CI.
Safe Diagnostic Command:
Extract JSON-LD script blocks and validate with `JSON.parse()`
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.
Technical Explanation
Unescaped quotes, control characters, or trailing commas inside `<script type="application/ld+json">`. Recommended diagnostic: `Extract JSON-LD script blocks and validate with `JSON.parse()``. Remediation: Serialize JSON-LD via `JSON.stringify()` with `</script>` escaped (`<\/script>`) and validate in CI.
Worked Examples
- Run `Extract JSON-LD script blocks and validate with `JSON.parse()`` to verify root cause before applying the remediation.
Limitations & Assumptions
- Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.
Source References & Verification
Resource ID: err-seo-structured-data-unparsable-jsonld · Independently verified: 2026-11-25