It reads the live page and collects every <script type="application/ld+json"> block. Each one is parsed as strict JSON, unpacked if it uses an @graph array, and every entity inside is checked for a @type. A page with no blocks scores 60 — not an error, but a missed opportunity; a page with blocks scores on the share of them that are valid.
How to fix what it finds
Malformed JSON is almost always a trailing comma, an unescaped quote inside a string, or a template that rendered an empty value where a number was expected — paste the block into the JSON Formatter to get the exact line. Missing @type means an entity object has no type declared. Once every block reads as valid here, run the URL through Google's Rich Results Test to check the per-type required properties.
What this validator checks, and what Google's Rich Results Test checks
The two answer different questions. This tool asks whether the JSON-LD on a live page can be read at all: does each block parse, and does each entity say what it is. Google's Rich Results Test asks whether the page qualifies for a particular rich result. Use this tool first, as the quick way to catch syntax breaks and missing types across every block on a page, then Google's test for the properties each rich result needs. The gaps in this tool are listed plainly so that a green result is not over-read.
| Check | This validator | Google's Rich Results Test |
|---|---|---|
| Input | A live URL, fetched for you. Pasted code is not accepted. | A live URL or a pasted code snippet. |
| Finds JSON-LD blocks | Yes: every script whose type is exactly application/ld+json, in the head or the body. A type with extra parameters, such as a charset suffix, is not matched. | Yes. |
| Valid JSON | Yes. A failure reads Malformed JSON-LD (invalid JSON), with no line or character position. | Yes. |
| Every entity has a @type | Yes, for each top-level object and each entry of an @graph array. | Yes. Each item is read by its type and tested against that type's rules. |
| A real schema.org type, and a @context | No. A made-up type, a blank or null type, and a block with no @context all pass. | Only types Google supports for rich results. validator.schema.org covers the wider vocabulary. |
| Required and recommended properties | No. A Product with only a name passes. | Yes, for supported types: a missing required property is an error, and many missing recommended ones are warnings. |
| Nested objects (offers, author, review) | No. Only top-level objects and @graph entries are examined. | Yes. Nested items are tested together with the item that contains them. |
| Eligibility for a rich result | No. A type is labelled by name against a fixed list. The label is a hint, not a verdict. | Yes. It lists the rich result types the page qualifies for. |
| Microdata and RDFa | No. A page that uses only these reads as having no structured data. | Yes, all three formats. |
| Markup added by JavaScript | Only if it is in the HTML the fetch returns. Not guaranteed (see below). | Yes, it renders the page first. |
| Markup matches the visible page, and Google's structured data policies | No. | Not part of the test. Violations surface as manual actions in Search Console. |
Where the Schema Markup Validator at validator.schema.org fits
Google's account of the split is short: the Schema Markup Validator checks syntax and compliance with schema.org, and the Rich Results Test checks markup against Google's rich result types. This tool is a lighter, URL-based first pass.
| Question | This validator | Schema Markup Validator | Rich Results Test |
|---|---|---|---|
| Input | A live URL. | A URL, or markup pasted in. | A URL, or pasted code. |
| Formats read | JSON-LD only. | JSON-LD, RDFa and Microdata. | JSON-LD, RDFa and Microdata. |
| What it judges | Valid JSON, and a @type on every entity. | Syntax and schema.org compliance for any schema.org type. Not Google's rich result rules. | Google's rich result types: their required and recommended properties. |
| Markup added by JavaScript | Only if the fetched HTML already has it. | Reads it. | Reads it, from the rendered page. |
Start here to learn whether the live page has JSON-LD and whether each block parses. Use the Schema Markup Validator to check markup against the schema.org vocabulary, or when a page uses Microdata or RDFa, and the Rich Results Test for Google's requirements. Google says the Rich Results Test ignores comments inside JSON-LD even though the standard does not allow them, so a block with a comment can pass there and still be reported as malformed here. None of the three can promise a rich result.
Reading a result: a worked example
A product page carries three JSON-LD blocks, each in its own <script type="application/ld+json"> tag. The second has a trailing comma after the currency, and one entity in the third spells its key type instead of @type:
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Acme Coffee",
"url": "https://example.com/"
}
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Espresso Mug",
"offers": {
"@type": "Offer",
"price": "14.00",
"priceCurrency": "USD",
}
}
{
"@context": "https://schema.org",
"@graph": [
{ "@type": "WebSite", "@id": "https://example.com/#website", "url": "https://example.com/" },
{ "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Mugs" }] },
{ "type": "WebPage", "@id": "https://example.com/mugs/#webpage" }
]
}This is what the tool reports for that page:
| What you see | What it means |
|---|---|
Score 60, and 5 JSON-LD blocks found — 3 valid, 2 with errors | 3 of 5 entities passed. "Blocks" here means entities: the @graph in the third script is three, and the unreadable second script is one. |
Organization, WebSite and BreadcrumbList, in green | All valid. Organization and BreadcrumbList are on the tool's list of rich result types and say "a type Google can show as a rich result". WebSite is not on it, so its row uses the quieter wording: useful for search engines' understanding, not a rich result on its own. |
Invalid block: Malformed JSON-LD (invalid JSON) | The second script did not parse. The trailing comma is the cause, but the tool does not say so. |
Invalid block: Missing @type in a JSON-LD block | The WebPage entity in the @graph, because its key is type. |
The two red rows do not name a block or a line. They come out in page order, and the green rows list only what passed, so find the culprit by elimination: there is no Product row, so the Product block is the one that failed to parse, and there is no WebPage row, so that is the entity missing its type. Paste a suspect block into the JSON Formatter for the exact position of a syntax break. After deleting the comma and renaming type to @type, the same page reads 5 JSON-LD blocks found — 5 valid with a score of 100. That is still only a syntax result: Google's test may go on to flag missing properties on the Product.
The most common JSON-LD syntax errors
Each of these produces the same message here, Malformed JSON-LD (invalid JSON), because the check is a plain JSON parse. JSON is stricter than JavaScript, which is why code that looks fine in an editor can still fail.
| Mistake | Broken | Fixed |
|---|---|---|
| Comma after the last item | "USD", } | "USD" } |
| Single quotes, or keys without quotes | {'@type': 'Product'} | {"@type": "Product"} |
| Curly quotes pasted from a word processor | {“@type”: “Product”} | Retype them as straight quotes. |
| A comment inside the JSON | // the mug or /* the mug */ | Delete it. JSON has no comments. |
| An empty or placeholder value from a template | "price": , or undefined or NaN | Output a quoted value, or leave the property out when it is empty. |
| Two objects in one script tag | {...}{...} | One script per object, or one array, or one @graph. |
| A quote, a line break or a closing script tag inside a string | See the first block below. | Escape them, as in the second block below. |
{
"@type": "Article",
"headline": "The "best" mug guide",
"description": "Line one
Line two",
"articleBody": "Why </script> ends a block"
}{
"@type": "Article",
"headline": "The \"best\" mug guide",
"description": "Line one\nLine two",
"articleBody": "Why <\/script> ends a block"
}The first block fails three ways: the inner quotes end the string early, a raw line break is not allowed inside a string, and the HTML parser ends the script at the first closing script tag. The second block escapes each one. When the message is Missing @type instead, the syntax is fine and an entity has no @type key. The usual causes are a key spelled type or @Type (keys are case-sensitive), a template that dropped it, a bare string or number in an array, or an @graph nested inside another @graph, which is not unpacked.
Valid here, still wrong: mistakes this tool cannot see
A green result here means every block parsed and every entity has a type, not that the values are right. These two blocks both parse, and between them they make six mistakes:
{
"@context": "schema.org",
"@type": "Product",
"name": "Espresso Mug",
"price": "$14,00",
"availability": "In stock",
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "4,6" }
}
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How to descale an espresso machine",
"author": "Jane Doe",
"datePublished": "24/10/2026"
}The tool reads the page as 2 JSON-LD blocks found — 2 valid, score 100, with a green Product row and Article row. After the six fixes below it reads exactly the same: the score cannot tell the broken page from the fixed one.
| Mistake | In the example | Fix, and the rule behind it |
|---|---|---|
| Wrong @context | "@context": "schema.org" | Use https://schema.org. Schema.org says the http:// form is fine too. |
| Price outside an Offer, with a symbol and a comma | "price": "$14,00" directly on the Product | Nest an Offer with price and priceCurrency. Schema.org asks for a currency code instead of symbols such as $, and a dot as the decimal point. Google's product snippet needs a name plus one of offers, review or aggregateRating. |
| Availability as prose | "In stock" | Use https://schema.org/InStock. Google also accepts the short name InStock. |
| Rating with a comma and no count | "ratingValue": "4,6" | Write 4.6 and add ratingCount. Google asks for a dot, and requires at least one of ratingCount or reviewCount. |
| Date not in ISO 8601 | "24/10/2026" | Write 2026-10-24. Google's Article page asks for ISO 8601 dates. |
| A bare string where an object is documented | "author": "Jane Doe" | Write { "@type": "Person", "name": "Jane Doe" }. Google documents author as a Person or Organization with its own name. |
The fixed Product looks like this. The Article only needs its author and date written as the table shows.
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Espresso Mug",
"offers": {
"@type": "Offer",
"price": "14.00",
"priceCurrency": "USD",
"availability": "https://schema.org/InStock"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": 4.6,
"ratingCount": 128
}
}Reading values is the job of the other two tools, against schema.org and Google's property lists respectively. Do not take a green row here as a sign the markup is right.
Error, warning or nothing to do: what each result asks of you
This tool has one error state (red), one warning state and one passed state (green). Google's documentation uses two levels: fix the critical errors, and consider the non-critical issues, which are not needed for eligibility. The table maps one onto the other.
| You see | Level | What it means and what to do |
|---|---|---|
Invalid block: Malformed JSON-LD (invalid JSON) | Error | The block is unreadable, so it counts as one invalid block however many entities it held. Fix it first. |
Invalid block: Missing @type in a JSON-LD block | Error | One entity cannot be classified. Add the @type or correct its spelling. |
No structured data found, score 60 | Warning | Not a defect. Check View Source first: the markup may be script-injected or Microdata. |
| Green row: a type Google can show as a rich result | Passed | Syntax and type only. Next, test the page in the Rich Results Test. |
| Green row, quieter wording, or the FAQPage and HowTo wording | Passed | Nothing to fix. A type list such as ["Restaurant", "LocalBusiness"] lands in the quieter group, and FAQPage and HowTo have no Google feature behind them. |
| A missing required or recommended property | Not detected | Without a required one, Google does not make the item eligible for that feature. A missing recommended one is usually a non-critical issue. Only the Rich Results Test shows either. |
The rich result wording comes from a fixed list this tool keeps, not from Google. The list includes Dataset, for example, although Google says Dataset markup is used only by Dataset Search, not Google Search. Three more causes of the malformed error are not in the syntax table above: a CDATA wrapper or an HTML comment around the JSON, a byte-order mark at the very start, and quotes written as ", because the contents of a script tag are not HTML-decoded.
Several blocks, @graph and how entities are counted
- Several script tags are normal. Each is parsed on its own, so one broken block does not hide the others. A page with one good and one malformed block reads two found, one valid and one with errors, scoring 50.
- @graph is unpacked one level. One script can hold an
@grapharray whose entities point at each other by@id, which is what Yoast and Rank Math output. Each entry is counted and typed separately, and a top-level array is unpacked the same way. An empty@graphcounts as nothing, so a page with only that reads as having no structured data. - Nested objects are not counted. The offers, author, publisher or review inside an entity are not listed or checked, so an Offer with no
@typestill passes, and a reference such as{"@id": "..."}is not an entity of its own. - Duplicates are listed, not flagged. A row such as
Product ×2is usually a theme and a plugin both printing the same entity. Keep one source so Google is not handed two versions.
Where JSON-LD can go, and how many blocks Google accepts
Google describes JSON-LD as a script tag that can sit in the head or the body, so either is fine, and this tool finds both. Google also says it can read JSON-LD that a script injects after load, which is where the gap with this tool, explained below, comes from. On quantity, Google says it understands several items on one page, whether nested inside a main item or each in its own block. Keep one description per entity and put each block on the page it describes. Markup about content a visitor cannot see breaks Google's guidelines: a structured data manual action removes rich result eligibility, though not rankings.
What the tool sees: server HTML or JavaScript-injected markup
The URL goes through the same page fetch the other HTML-based tools here share. A scraping service returns the page's HTML and this tool reads that text with an HTML parser. It runs no scripts of its own, and what the service captured before handing the HTML over is outside its control. A fetched page is kept for up to 24 hours and a finished result is reused for up to 6 hours.
| Where the JSON-LD comes from | This tool | |
|---|---|---|
| Written into the HTML by the server, CMS or framework (a WordPress plugin, Next.js, a PHP template) | Found. | Found. |
| Added by a script after the page loads (a Tag Manager custom HTML tag, an app component, a widget) | Only if the fetched HTML already includes it. Not guaranteed either way. | Usually found, since Google renders pages, but later and less reliably than markup in the first HTML. |
| Added only after a click, a scroll or a consent choice | Not found. | Usually not found. |
So a missing block here is ambiguous when your markup comes from a script. Open the page, choose View Source (not Inspect, which shows the page after scripts have run) and search for application/ld+json. A block in the source is there for this tool and for Google without waiting for any script. A block that only appears in Inspect is worth testing in Google's Rich Results Test, which renders the page, and worth moving into the server-rendered HTML.
After you fix it
- Check the live source, then re-run. Confirm the fix is deployed by viewing the source. A result can be up to 6 hours old and a fetched page up to 24, so an immediate re-run may repeat the old answer; a harmless query string such as
?v=2makes the address new and forces a fresh fetch. - Run Google's Rich Results Test. It fetches the page (or takes pasted code), renders it, and lists the rich result types the page qualifies for, with missing required properties as errors and many missing recommended ones as warnings. Fix those in the markup and test again.
- Watch the Search Console enhancement reports. Under Enhancements, Search Console shows a report for each markup type Google found on your site, such as Breadcrumbs or Product snippets, counting valid items, items with warnings and items with errors across the whole site. They update only after Google recrawls the pages, which can take days to weeks, and an error report offers a way to ask Google to validate your fix.
If a page has no markup yet or needs more, build it with the Schema Markup Generator, the FAQ Schema Generator or the Review Schema Generator, then validate it here. The Meta Tag Checker covers titles, descriptions and social tags, and the Full Site Audit runs this check alongside the others. The schema markup guide explains which types are worth adding.