SEO issue explained

Invalid JSON-LD

A JSON-LD structured data block on the page has a syntax error. Search engines cannot read any of it, so the whole block is ignored.

A friendly robot examining a web page with a magnifying glass, surrounded by charts and check marks

What this issue means

ROC SEO reports JSON-LD blocks that cannot be parsed as an error under check S1, and shows the error position. The schema checker does the same for any address or pasted code.

Why it matters

JSON is strict: one missing comma, an extra comma at the end of a list, or a straight quote inside text breaks the whole block. Product, article or breadcrumb data in it is then lost to Google and other tools.

How to fix it

  1. Paste the code into the schema checker to see the error and its position.
  2. Look for the usual causes: a comma after the last item, a missing comma between items, or quotes inside text that are not escaped as \".
  3. Do not build JSON-LD by gluing strings in a template; use your platform's JSON function or a plugin.
  4. Make a new block with the schema generator if it is easier than repairing it.

Find it on your own site

The free ROC SEO extension checks the page you are on for this and more than 60 other issues, each with a fix, and the site crawler checks up to 1,000 pages for free.

Related issues

Frequently asked questions

Does Google read part of a broken JSON-LD block?

No. If the block cannot be parsed, nothing in it is used.

Can one broken block affect other blocks?

No. Each script block is read on its own, so other valid blocks still work.

Are comments allowed in JSON-LD?

No. JSON does not allow comments; remove them or the block will not parse.

Get in touch

Questions, ideas or a partnership?

Write to us about anything: a guest post or publishing on our blog, a partnership, an update you would like to see, a problem with the extension, billing or a refund. A person reads every message and replies by email.

Prefer email? Write to support@getrocseo.com.