JSON-LD and Structured Data: What Crawlers and AI Assistants Actually Read

Schema.org markup, canonical URLs, sitemaps, and robots directives are the plumbing every publisher has. Here is what each one does, who reads it, and what it cannot do.

Your page has two audiences: the person reading it, and the machine deciding whether to quote it. Most publishers optimize for one and forget the other.

A layer of the web exists that no human sees and every crawler reads. It sits alongside the HTML as machine-readable declarations: what this page is, who published it, when it changed, which URL is the real one, and where the sitemap lives.

This site uses three pieces of it — JSON-LD, a canonical URL, and an XML sitemap — plus a robots.txt that points crawlers at the sitemap. Here is what each does and what it cannot do.

JSON-LD: the page described to a machine

JSON-LD attaches structured data to a page via a <script type="application/ld+json"> tag containing a JSON object that describes the page’s content using schema.org vocabulary.

Every article page here emits an Article object:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "...",
  "description": "...",
  "datePublished": "2026-11-25T00:00:00.000Z",
  "dateModified": "2026-11-25T00:00:00.000Z",
  "mainEntityOfPage": { "@type": "WebPage", "@id": "https://siliconpost.tech/articles/..." },
  "url": "https://siliconpost.tech/articles/...",
  "image": ["https://siliconpost.tech/covers/json-ld-and-structured-data-explained.jpg"],
  "articleSection": "Computing & Hardware",
  "isAccessibleForFree": true,
  "author": { "@type": "Organization", "name": "SiliconPost", "url": "https://siliconpost.tech" },
  "publisher": {
    "@type": "Organization",
    "name": "SiliconPost",
    "url": "https://siliconpost.tech",
    "logo": { "@type": "ImageObject", "url": "https://siliconpost.tech/favicon.svg" }
  }
}

Static pages — About, Contact, Privacy, Terms, Disclosure, Editorial standards — use WebPage objects with the same publisher block, connecting each policy page to the organisation that wrote it.

Three design decisions in that object are worth explaining, because each is a choice rather than a default.

The author is a Person only when there is a person to name. The author field is optional in the schema, and this site leaves it unset unless a byline is supplied. When unset, the publication itself is credited as an Organization author. Inventing a person — or crediting a fictional one — would make the structured data a lie in a format specifically meant to be trustworthy. An unnamed publication is a less impressive profile, but it is an accurate one.

dateModified equals datePublished unless the article was actually revised. The site distinguishes “published” from “updated” properly, and does not bump dateModified on every deploy. A crawler that sees dateModified tracking build time learns nothing, because the value stops meaning anything.

isAccessibleForFree is stated explicitly. This field exists because paywalled content is subject to specific structured-data guidelines. A site that is free should say so rather than leaving the field to default to ambiguous.

Canonical URLs: which URL is the real one

The same content can be reachable at many URLs — trailing slashes, tracking parameters, www variants, uppercase paths — each producing a distinct address with identical content.

A <link rel="canonical"> tag declares which one is authoritative. Everything else is a duplicate.

This matters more than it used to. Duplicate URLs split link equity and, more relevant to a site that wants to be found by assistants rather than only search engines, they fragment the crawl. An assistant deciding which version of a page to quote has less to go on when there are three candidates with the same content.

The canonical tag also feeds the Open Graph og:url, which is what social platforms use when someone shares a link. Keeping those two identical means the shared preview and the indexed URL are the same address.

Sitemaps: the list of what exists

A sitemap is an XML file listing every URL on the site, optionally with a last-modified date, change frequency, and priority. This site generates one at build time from the content collection plus a static page list — no extra dependency, just an endpoint that reads the collection and writes the XML.

The useful properties of a sitemap are narrow and specific:

  • It tells a crawler what exists, so pages not linked from anywhere else are still discoverable.
  • The lastmod value gives a crawler a freshness signal without having to fetch the page.
  • The changefreq and priority fields are, in practice, ignored by most crawlers. Google has said so directly for years. The lastmod value is the part worth filling in accurately.

What a sitemap does not do is get you indexed. It is a discovery aid, not a ranking signal. Submitting one to a search console makes the list available and lets the console report crawl errors — genuinely useful — but it is not a shortcut around the requirement that the page be worth indexing.

robots.txt: the one file that can exclude you

robots.txt sits at the site root and states which paths crawlers should not fetch. This site’s is deliberately minimal:

User-agent: *
Allow: /

Sitemap: https://siliconpost.tech/sitemap.xml

Allow: / is the default behaviour, so the line is documentary rather than functional. The Sitemap: line is the part that does something — it tells crawlers where the list lives without anyone having to guess the convention.

The important thing about robots.txt is what it is not. It is not an authentication mechanism, not a privacy control, and not an access control. A URL listed under Disallow is still reachable by anyone who requests it. It is a politeness request to well-behaved crawlers, and the only enforcement is that a crawler that ignores it may be treated as abusive.

The practical failure mode to avoid is the reverse of the usual worry: a robots.txt that accidentally blocks the whole site, or blocks the sitemap, or blocks the CSS and JavaScript a crawler needs to render the page. That one does real damage.

What this buys you, and what it does not

Structured data is often described as an SEO trick, which undersells it. The plain description: it is a machine-readable statement about what your page contains, for whoever is building a system that answers questions.

That system is no longer only a search engine. OpenAI’s Businesses in ChatGPT launched in November 2026 with product feeds, claimed business profiles, and sponsored Business Agents — a structured-data surface inside a conversational assistant. The same reasoning applies to every assistant that retrieves from the web: the clearer your metadata is, the more reliably you can be quoted correctly.

Three limits are worth stating plainly.

Structured data does not create authority. Markup tells a machine what a page is. It does not make the page correct, original, or worth citing. A machine-readable claim about a wrong fact is still a wrong fact.

Markup does not replace readable content. Every consumer of structured data is also capable of reading prose. A page whose JSON-LD says one thing and whose body says another is a page that should not exist.

Bad markup is worse than none. Misleading structured data can trigger a manual action against a site’s search presence, and an invalid JSON-LD block is silently ignored — which means the whole exercise quietly does nothing.

A minimal checklist

For a static publication, the whole machine-readable layer is small:

  1. A valid JSON-LD block per page type, generated from the same source as the visible content so the two cannot drift.
  2. An absolute og:url matching a single canonical URL per page.
  3. An XML sitemap generated from the content collection at build time, with accurate lastmod values.
  4. A robots.txt that allows everything and names the sitemap.
  5. A real 404 page, so unknown paths return a 404 status rather than a soft-404 that looks like a valid page with the wrong content.

That last one is the item people forget, and it is the one that most directly affects how a crawler interprets the rest of the site. A site that returns HTTP 200 and a homepage for every unknown path is telling crawlers that every URL is a duplicate of the homepage. Which, as far as any crawler can tell, it is.

Sources