Skip to content

JSON-LD structured data block contains invalid JSON

JSON-LD is a block of code added to a page to describe it in a structured way that search engines and AI tools can read, for example marking up a business's opening hours or a product's price. This check validates that JSON-LD blocks are written as correct, parseable JSON. On this site, one or more JSON-LD blocks contain invalid JSON, often from a stray comma, an unquoted key, or curly "smart quotes" left over from copying and pasting text.

Why this matters

Malformed JSON-LD is typically ignored by search engines, so it may provide no benefit despite the time spent adding it, and you will not get a warning unless you check it with a validator such as Google's Rich Results Test. Other tools may handle errors differently.

How to fix it

Your developer should validate every JSON-LD block using a tool such as the schema.org validator or Google's Rich Results Test, then correct the specific syntax error it flags. This is usually a quick fix once the broken block is identified, around thirty minutes.

Turn website findings into an action plan

Create an account to start a Full Audit of your website, with supporting evidence and a prioritised action plan.

Start Full Audit