Fix Guide
How to Fix Invalid JSON-LD Structured Data
A structured data script exists but cannot be parsed as valid JSON.
Recommended fix
Validate JSON syntax, remove trailing commas/comments, and use appropriate schema.org types.
This guide is designed to pair with a scanner report. Run a URL scan first, then follow the implementation steps.
Developer task
Regenerate JSON-LD from typed data and test with a structured data validator.
Implementation steps
How to apply this fix
- Locate the <script type="application/ld+json"> block that fails to parse.
- Fix JSON syntax: remove trailing commas and comments, and quote all keys and string values.
- Confirm the @type and properties match a valid schema.org type for the page.
- Regenerate JSON-LD from typed data rather than hand-editing where possible.
- Re-scan and validate with a structured data testing tool.
Verify
Re-run the URL scan after deploying the change to confirm the issue clears and the Themerella Score updates.
Related guides