GUIDE 6 OF 11 · WEBSITE HEALTH CHECK

JSON-LD structured data errors

The structured data check does two things. It warns when a page has no JSON-LD block at all, and it fails when any block is not valid JSON, because search engines ignore a block they cannot read. It does not check that the data is correct, so passing is only the first step. It carries 1 of the 120 points, the lowest weight any check has, but a broken block is a mistake that is quick to fix and never worth leaving.

Updated 5 December 2026Explains 1 check of the scanner behind the free tool

AT A GLANCE

  • No JSON-LD block: a warning.
  • Any block that is not valid JSON: a fail, even if the others are fine (1 of 2 blocks broken fails).
  • All blocks parse: a pass. A made-up @type also passes: only the JSON syntax is tested.
  • Only <script type="application/ld+json"> is counted, and the type must be exactly that.
The checks this guide explains, and the points each one carries
CheckGroupPoints
Structured data (JSON-LD) seo-structured-dataSearch1

What the check looks at

How the structured data check decides
What is on the pageResult
No <script type="application/ld+json"> at allWarning: no structured data found
A block with a trailing comma, a stray quote, or nothing inside itFail: the block is not valid JSON
One valid block and one broken oneFail, and the message says 1 of 2 blocks is broken
A valid object, or a valid array of objectsPass
A valid block with a @type that does not existPass: the checker does not know schema.org
A script whose type is application/ld+json; charset=utf-8Not counted at all, so the page may show "no structured data"

The scanner parses each block with a normal JSON parser. If the parser throws, the block is broken. That is all the check knows. It does not compare the data with schema.org, it does not know which types earn rich results, and it does not look at whether the data matches the page.

The usual causes of a broken block

  • A trailing comma after the last item of an object or list. Valid in JavaScript, invalid in JSON.
  • Single quotes instead of double quotes around names and text.
  • A text value with a double quote or a line break inside it, not escaped.
  • An empty block, left in the template when there was nothing to put in it.
  • Text written by hand into a template: put the data in an object and turn it into text with JSON.stringify so it is always valid.

A safe way to write it

Build the data as a normal object in code and convert it with JSON.stringify. Then one more step matters: a value that contains the text </script> would close the tag early and break the page. Escaping the less-than sign prevents it. This is the helper this site uses for every block:

lib/seo.ts and components/JsonLd.tsx on this site (shortened)
// "<" is escaped so the data can never close the tag
export function jsonLdString(data: unknown): string {
  return JSON.stringify(data).replace(/</g, "\\u003c");
}

export default function JsonLd({ data }: { data: object | object[] }) {
  const body = Array.isArray(data)
    ? { "@context": "https://schema.org", "@graph": data }
    : { "@context": "https://schema.org", ...data };
  return <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: jsonLdString(body) }} />;
}

Every page of this site carries a WebSite and a Person node, and pages below the home page add a BreadcrumbList. The services page also describes each of its five offers as a Service.

Mark up only what the page shows

Structured data should describe what a visitor can see on the page. This site once marked up FAQ answers that were not visible on any page, and removed the markup in an earlier search clean-up for that reason. A block that says more than the page does is a risk, even if the JSON is valid.

Check the meaning with a validator

The health check proves the JSON can be read. To see whether the data is complete and whether it can earn a rich result, use Google's Rich Results Test or the Schema Markup Validator. Both are linked below. Run one of them after the health check passes.

What the check cannot see

A block added by JavaScript after the page loads is not seen, because the scanner reads the HTML the server sends. A valid block that describes the wrong thing passes. And the check is weighted 1 out of 120 points, so a page can lose it and still score well: the score is a guide to priorities, not a verdict.

Questions people ask

Do I need structured data to rank?

No. Search engines index pages without it. It helps them understand what a page is about, and for some types it can earn a richer result, which is why the checker looks for it, but at a weight of 1 point it is the least important check.

Why does my valid JSON-LD show as "no structured data found"?

Check the type attribute. The scanner counts a script only when its type is exactly application/ld+json, ignoring capital letters. A type with extra text after it, such as a charset, is not counted. Also check that the block is in the HTML the server sends and not added later by a script.

Should I add FAQ structured data?

Only if the questions and answers are on the page for visitors to read. Google stopped showing FAQ rich results in May 2026 and has since removed its documentation for them, so FAQ markup no longer changes how a page looks in Google Search. Visible questions and answers still help readers.

Where the facts come from

See also on this site

FREE · ABOUT TEN SECONDS · NOTHING STORED

Check your own site

Paste a web address into the free website health check. It runs the 36 checks these guides explain, gives a score out of 100, and says what to fix first.

Open the free website health check