Core writing

How Google Parses JSON-LD

Googlebot fetches HTML, reads script type application/ld+json, and keeps nodes that match visible content and a supported rich-result type.

On this page
  1. The fetch is for one URL
  2. What the script element has to be
  3. A script that does not parse is dropped
  4. JavaScript can add the markup, and it can miss
  5. Parsed is not the same as eligible
  6. Several scripts, and names that disagree
  7. Other consumers
  8. A script that parses
  9. Checklist when a page goes out

Googlebot requests the URL, receives HTML, looks for script elements whose type is application/ld+json, parses the JSON, and associates the entities with that page. If parsing fails, that script is ignored. A second script that is valid is not thrown away because the first one had a trailing comma. Eligibility comes after the parse. The type has to be one Google still supports for a rich result, the properties that feature wants have to be present, and the values have to describe the visible page rather than a sales pitch that is not on the page.

Google can run JavaScript, so markup added by a script can be seen. That path is more fragile than markup in the first HTML response. The first response is what view source shows, what a CDN serves without running your bundle, and what still exists when rendering times out. Put the JSON in the HTML you ship. Treat client-side injection as a tested fallback, not as the plan.

Several scripts on one URL are combined. An @graph array is another way to send several entities. Conflicting names for what is clearly one entity cause Google to pick or drop. Two headlines, two product names, or two organization names for the same thing are a contradiction, not a richer description. The overview of this pipeline is Intro to structured data.

The fetch is for one URL

Structured data on a URL describes that URL. A node on /journal/store-roasted-coffee does not describe the home page, the author profile, or a product linked from the third paragraph. Google's introduction says the markup describes the content of that page, that you should not create empty pages just to hold structured data, and that you should not mark up information the reader cannot see, even when the hidden fact is true.

Start debugging from the response, not from the Elements panel. View source and curl show the HTML as delivered. Elements shows the DOM after scripts run. A node that exists only in Elements was injected. A node in view source was shipped. Status codes come before any parser. A 404, a login wall, a noindex, or a URL blocked in robots.txt means the body is not a structured-data problem yet. Fix the response first.

What the script element has to be

The element is script and the type is exactly application/ld+json. application/json or text/javascript is not the signal. The element can sit in the head or the body. Placement does not change the parse. A template that HTML-escapes the JSON into visible text, wraps it in a comment, or puts it in a preview textarea is not sending a script. Browsers do not render JSON-LD as page text. Readers see the HTML. The script is data for consumers.

@context should be https://schema.org so the types resolve to that vocabulary. A bare object with no context is incomplete. A private context will not match the types Google's rich result features expect. @type is a string such as BlogPosting. One type per entity is the clear choice on most pages. JSON does not allow a trailing comma, a single-quoted string, a comment, or a smart quote pasted from a word processor. Keep this block out of the JavaScript minifier. It is not a module.

A script that does not parse is dropped

If the JSON is invalid, Google ignores that script. There is no partial recovery of the fields above the syntax error. A missing comma on the last property drops the headline above it. Search Console has a report for unparsable structured data that names the URL. The Rich Results Test usually points at the bad token. Fix the JSON, then look at eligibility. Parse first, then shape, then whether the feature still exists.

One broken script does not define the page. A valid breadcrumb can be kept while a broken article script is ignored. A trailing comma, a smart quote, or a template that prints undefined without quotes is enough to drop that script. Validate the bytes from the public URL, not a pretty copy in your editor.

JavaScript can add the markup, and it can miss

Google's documentation says it can read JSON-LD injected by JavaScript or by a widget. That is permission, not a preference. Rendering has more steps than a fetch. The HTML arrives, the page is queued, scripts run, and a later pass can read the DOM. If your JSON-LD is built in that later pass, a bundle that throws, a consent banner that withholds the tag, or a client-side router that changes the article without updating the script will leave the URL with the wrong node or with none.

A tag that fires on a click does not fire for Googlebot. A script that reads the headline too early can write an empty string, and an empty field counts as missing. Server-render the script. If the node exists only after rendering, you are on the fragile path. Where each format lives in the page is covered in JSON-LD versus Microdata. The checks before you publish are in How to validate JSON-LD.

Parsed is not the same as eligible

After a script parses, three gates still apply. The type is one Google still documents for a rich result. The properties that feature wants are present and well formed. The values match the visible page. FAQPage can be syntactically perfect and still have no FAQ rich result. Google stopped showing that feature on 7 May 2026. The entry is in the documentation updates. HowTo rich results ended in 2023, which Google recorded in this post on the HowTo and FAQ changes. The search gallery, updated 16 October 2026, is the list of features that still exist. Article and Breadcrumb are on it. FAQ and HowTo are not.

The FAQ generator will still build a valid FAQPage and warn that Google no longer shows that rich result. Article has no required properties in Google's documentation. Headline, image, and datePublished are still the ones that have to be right. A missing-field report means the type was recognized and a wanted property was absent. It does not mean the JSON failed to parse.

The visible-page gate rejects markup a reader cannot check. A price in the JSON that is lower than the price next to the button, an author who is not in the byline, a breadcrumb category that is not in the trail, and a sales line that exists only in the script are the same mistake. The introduction says not to add structured data about information that is not visible, even if it is accurate. Do not write a second page that only crawlers were meant to see.

Several scripts, and names that disagree

You can print an organization in the layout, an article in the post template, and a breadcrumb in the trail component. Three scripts, one URL. Google combines the entities it could parse. You can also put those nodes in one @graph. Separate scripts let separate templates own separate nodes. One graph is easier to keep free of duplicates. Neither form is more eligible by itself. Combining does not merge contradictory fields. If one script says the headline is "Store roasted coffee" and another says "How to keep beans fresh", those are two claims about one article.

There is no switch for which node wins. Google may select one name or discard the muddled entity. Count the article, product, and breadcrumb nodes in the response, and use one public name for each real thing. An image array is several values of one property. A conflict is two different strings for the same property of the same thing.

Other consumers

A browser does not show JSON-LD to readers. There is no built-in panel that renders your BlogPosting for a visitor. The people on the page see the HTML. The script is for programs that fetch the page and look for structured data. Google Search is the consumer these guides focus on, because its gallery and its Search Console reports are public and specific. It is not the only one.

Other consumers may read the same JSON-LD. Some assistants do. Bing does. Pinterest does. Some AI crawlers do. This guide does not invent a 2026 feature list for them. If you keep FAQPage or HowTo for another consumer, know which one. Google will not show those rich results. Unused structured data does not by itself harm Google Search, and it does not produce a Google rich result.

A script that parses

This fictional node is valid JSON. It belongs in a script element with type application/ld+json. It describes one visible article, with an absolute image URL and an ISO date. A clean parse is not a promise that a rich result will appear.

{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "Store roasted coffee",
  "image": "https://example.com/media/sealed-jar.jpg",
  "datePublished": "2026-03-12",
  "author": {
    "@type": "Person",
    "name": "Mina Solano"
  }
}

Add a trailing comma after the author object and Google ignores that script. The headline above the comma does not survive on its own. BlogPosting is still documented, because Article is in the gallery as of 16 October 2026, but a headline that is not the h1 fails the visible-page gate. A missing comma and a missing image are different reports. Fix the one the report names.

Checklist when a page goes out

  1. Fetch the public URL and read the HTML before JavaScript runs. The script should already be there.
  2. Confirm the element is script and the type is application/ld+json.
  3. Parse the JSON. A trailing comma, a smart quote, or a broken string means that script is ignored.
  4. Confirm @context is https://schema.org and each entity has a @type.
  5. If you expect a Google rich result, confirm the type is still in the search gallery.
  6. Confirm the values repeat what a reader can see on this URL.
  7. Count entities. One real thing should have one name. Conflicting names get picked or dropped.
  8. If the node appears only after hydration, move it into the first response or accept the extra ways it can vanish.
  9. Re-test the public URL in the Rich Results Test after the template change, not a copy pasted from your editor.