Fix Guide

How to Fix Invalid JSON-LD Structured Data

A structured data script exists but cannot be parsed as valid JSON.

Safe public URL scan. Results include technology evidence, SEO checks, security headers, accessibility basics, and a developer fix list.

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

  1. Locate the <script type="application/ld+json"> block that fails to parse.
  2. Fix JSON syntax: remove trailing commas and comments, and quote all keys and string values.
  3. Confirm the @type and properties match a valid schema.org type for the page.
  4. Regenerate JSON-LD from typed data rather than hand-editing where possible.
  5. 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

Continue the same website quality workflow.