Key takeaways
  • JSON-LD helps machines parse the entities on a page, but it does not earn citations or guarantee any search or AI result.
  • Markup must describe what a visitor can see on the same page, or it becomes a liability rather than an aid.
  • Validate the syntax, compare every field with the visible text, and track crawler visits before claiming any effect.

JSON-LD is a way of writing structured data as a block of JSON inside a script tag, so a parser can read what a page is about without guessing from layout and tag soup. Does it help AI search? It can make a page easier for machines to parse, especially facts such as the author, the publication date and the organization behind the page. It does not, on its own, earn a citation from an AI answer engine, and the public documentation we have read does not promise that it will.

This article covers the syntax, the four types that matter most for a typical content site, the mistakes teams make most often, and what cannot be measured. We build InstantIndexingPro, a tool for submitting URLs and checking which bots fetch them, so we have a stake in how crawlers behave. We will say where that helps and where it does not.

What JSON-LD actually is

JSON-LD is a serialization of linked data. It is ordinary JSON with a small set of reserved keywords, such as @context, @type and @id, that connect your keys to shared vocabulary definitions. The vocabulary most people use is schema.org, a collaborative project that defines types like Article, Organization and BreadcrumbList along with the properties each type accepts.

The W3C published JSON-LD 1.0 as a Recommendation in 2014. Google's developer documentation recommends JSON-LD over microdata and RDFa when you have the choice, mainly because the markup sits in one block instead of being woven through your HTML elements.

Accurate structured data does one thing well. It removes guesswork for a parser. A page can mark a heading with an h1 tag, but a parser has to infer from that tag and from layout what the headline means. A JSON-LD block states it directly. That is a real benefit. It is a different claim from saying the page is more trustworthy, more relevant or more likely to be quoted.

Where the script tag goes

Put a script element with type application/ld+json anywhere in the HTML document. The head is the usual choice. Browsers do not render the contents, so the block has no effect on layout or on how the page looks to a visitor.

Timing matters more than position. The markup should exist in the HTML that the server returns. Some crawlers read only that initial response. If a client-side framework injects your JSON-LD after the page loads, those crawlers may never see it. Google renders JavaScript, but you should not assume every system does the same.

A minimal head looks like this:

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>JSON-LD basics for AI search</title>
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "WebPage",
    "name": "JSON-LD basics for AI search",
    "url": "https://www.example.com/blog/json-ld-basics-for-ai-search"
  }
  </script>
</head>
<body>
  <!-- visible page content goes here -->
</body>
</html>

You can have one block per entity or one block with an @graph array. Either is valid. Pick the one your templates can keep consistent, and do not split the same entity across both.

@context, @type and properties

The @context key tells the parser which vocabulary your keys come from. For schema.org, the value is "https://schema.org". Without it, a key like "headline" is just a string with no defined meaning.

The @type key says what the thing is. Common types for content sites include Article, WebPage, Organization, Person, BreadcrumbList and FAQPage. Properties are the keys that describe the thing. Property values can be strings, numbers, URLs, ISO 8601 dates or nested objects.

Check the schema.org page for each type before you use it. Some properties expect plain text, some expect a URL, and some accept either a URL or an object. Dates are a frequent source of silent errors. "2026-11-14" is valid ISO 8601. "14 Nov 2026" is not, and a parser may discard the value without telling you.

A minimal Article block looks like this:

{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "JSON-LD basics for AI search",
  "datePublished": "2026-11-14",
  "author": {
    "@type": "Person",
    "name": "Example Author",
    "url": "https://www.example.com/authors/example-author"
  }
}

The headline should match the visible H1 on the page. It does not need to be identical word for word, but it should describe the same thing. A headline that differs from the page in its claims is a content mismatch, whatever the syntax looks like.

Nesting and @id references

Nesting works well when an entity appears only once. If the same organization or author appears on every article, nesting repeats the object in every block, and the copies drift apart over time. One template changes the name, another keeps the old one, and the parser sees two different entities.

The fix is @id. An @id is a stable identifier for a node, written as a URI. Other nodes refer to it with a short object that contains only the @id. The identifier does not have to resolve to a web page, but many teams use a fragment on the canonical domain, such as "https://www.example.com/#organization", so the name is unambiguous and cannot collide with another site's identifier.

Use @graph to hold several nodes in one block:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://www.example.com/#organization",
      "name": "Example Co",
      "url": "https://www.example.com/"
    },
    {
      "@type": "Person",
      "@id": "https://www.example.com/authors/example-author#person",
      "name": "Example Author"
    },
    {
      "@type": "Article",
      "@id": "https://www.example.com/blog/json-ld-basics-for-ai-search#article",
      "headline": "JSON-LD basics for AI search",
      "datePublished": "2026-11-14",
      "author": { "@id": "https://www.example.com/authors/example-author#person" },
      "publisher": { "@id": "https://www.example.com/#organization" },
      "mainEntityOfPage": "https://www.example.com/blog/json-ld-basics-for-ai-search"
    }
  ]
}
</script>

Keep @id values stable. If you change the identifier in a later deploy, a parser may treat the organization as a new entity. Decide the identifiers once, document them, and reuse them across every template.

Organization and Article fields that matter

The Organization node describes the site's publisher. Its name, url and logo should match what the visitor sees in the header and footer. If the footer says "Example Co" and the markup says "Example Company Inc.", you have two names for one entity, and nothing in the markup explains why.

For the Article node, four fields do most of the work: headline, datePublished, dateModified and author. The first two should match what is printed on the page. dateModified should change only when the content changed in a meaningful way. Updating it for a typo fix or a template tweak makes the date less useful, and a reader who compares your markup with the page will notice.

Do not invent an author. If a post has no named author, leave out the author node rather than attaching a generic or fictional person. A missing field is an honest gap. A made-up one is a claim the page cannot back up.

BreadcrumbList

A BreadcrumbList describes the path a visitor takes to reach the page. The most important rule is that it must match the breadcrumb trail a visitor can see. If the page shows Home, Blog, AI Search, the markup should show the same three levels, in the same order, with the same labels.

{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Blog",
      "item": "https://www.example.com/blog/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "AI Search",
      "item": "https://www.example.com/blog/category/ai-search/"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "JSON-LD basics for AI search"
    }
  ]
}

The final item omits its item URL because it is the current page. Positions start at 1 and increase without gaps. If your CMS generates breadcrumbs from category data, check what happens when a post belongs to two categories, because the visible trail and the markup can disagree in that case.

FAQPage: only when the questions are visible

FAQPage markup describes questions and answers that appear on the page. The markup is a description of visible content. It is not a place to store extra copy for search engines.

This matters for the article you are reading. It has no visible FAQ section, so the questions in its front matter should not be turned into FAQPage markup. The front matter is metadata for our publishing system. If a page renders those questions for readers, the markup becomes appropriate, and the answers in the markup must match the rendered answers.

A valid FAQPage block for a page that shows one question looks like this:

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Does JSON-LD guarantee a citation in AI answers?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "No. It helps parsers read the page, but it does not guarantee that any system will cite it."
      }
    }
  ]
}

Be realistic about what the markup will do for you. Google has restricted FAQ rich results to a narrow set of sites in the past, so markup may produce no visible change in search. Check current search documentation before you plan around a visual result. Valid FAQ markup on a page that readers can use is still a fair thing to publish. Markup added only to chase a result is not.

Does this help AI search? What we can and cannot know

Structured data helps a parser identify entities and read fields with less ambiguity. For a page with a clear author, a clear date and a clear publisher, that can reduce extraction errors. Those are the realistic gains.

Beyond that, the picture is unclear. Most AI providers do not publish detailed documentation about how their systems retrieve, rank or cite sources. We do not know which answer engines read JSON-LD at all, how heavily they weight it against page text, or whether the weight changes over time. We also cannot see a clean counterfactual on most sites, because content quality, age, links, topic overlap and crawl frequency change at the same time as the markup does.

What is likely to matter more for citations is the content itself: whether the page answers a question clearly, whether it is accurate, whether other sites link to it, and whether crawlers can reach it. Markup can support those factors, but the public record does not show it replacing them.

If you want to test an effect, change one set of pages, keep a comparable set unchanged, and measure over several weeks. Sample answers to a fixed query list on a schedule, and record which URLs appear. Expect noise. A few weeks of results on a small site will rarely settle the question.

This is where our product fits in. InstantIndexingPro submits changed URLs through IndexNow, which participating search engines support, and logs which bots fetch each URL. If you update a page's markup and want to confirm that a crawler came back to it, the logs show the fetch. They do not show that the markup was read, parsed or used. Keep those two claims separate in any report you write.

IndexNow is also not the same thing as Google's crawling. Check each engine's documentation before you assume a notification will be acted on in the way you expect.

Validating your markup

Validation has three layers, and each one catches a different kind of error.

The first layer is syntax. JSON-LD is strict JSON. A single trailing comma, a smart quote pasted from a word processor or a missing bracket breaks the whole block, and many validators will report only a generic failure. Paste the contents of the script tag into any JSON parser, or run the block through a command-line formatter such as python3 -m json.tool. Fix every error before moving on.

The second layer is schema validity. The Schema Markup Validator at validator.schema.org checks the block against the schema.org vocabulary, so it catches wrong property names and types that do not fit. Google's Rich Results Test checks whether a page is eligible for specific Google features, and it reports warnings for properties Google expects but does not find. Passing one tool does not mean passing the other, and neither one knows what your page says.

The third layer is content match, and no tool does this for you. Read each field next to the visible page. Does the headline match the H1? Does the date match the printed date? Does every breadcrumb appear on the page? Does every FAQ question appear on the page with the same answer? If a field describes something a visitor cannot see, remove it.

Also check the source, not the rendered page. Use the view-source view or fetch the URL with a plain HTTP client, and confirm the block is in the initial HTML. A block that appears only after JavaScript runs in your browser is not necessarily visible to every crawler.

Common mistakes

Most markup problems are ordinary. The list below covers the ones that come up most often in audits.

What cannot be known

Some questions about structured data have no answer you can look up, so it is worth stating them plainly.

No public source tells you which AI systems read JSON-LD, how much they weigh it, or whether that weighting changes between model updates. A provider may change its retrieval pipeline without notice. A result you see today may not hold next month, and a result you do not see may come from a process you cannot observe.

You also cannot isolate the markup's effect from everything else you changed in the same period. A new article, a link from a well-known site or a shift in the query mix can each move citation rates more than the markup does.

Finally, you cannot know what your competitors' markup does for them, or whether their pages were cited for reasons unrelated to structure. Any claim that structured data "gets you cited" should be treated with suspicion until someone shows a controlled comparison.

What to do

  1. Write the visible content first. Settle the headline, the date, the author, the breadcrumb trail and any visible questions and answers before you touch the markup.
  2. Choose the schema.org types that describe the page. Use Article or BlogPosting for articles, Organization for the publisher, and BreadcrumbList for visible navigation. Add FAQPage only when the questions appear on the page.
  3. Assign stable @id values to the organization, the author and the article, and reuse them across templates. Write the identifiers into a short internal document so the next person does not invent new ones.
  4. Put the block in the server-rendered HTML, validate the JSON syntax, then run the page through the Schema Markup Validator and the Rich Results Test.
  5. Compare every field with the visible page. Remove anything a visitor cannot see, and fix any date or name that disagrees with the printed text.
  6. If you want to see whether a crawler returned to a page after an update, use your server logs or a bot-fetch log such as the one InstantIndexingPro provides, and report the fetch as a fetch. Do not report it as proof that the markup changed anything.
  7. Set an expectation with your team that markup is hygiene, not a guarantee. Measure content quality and crawl access alongside it, and be cautious about any claim of a citation gain you cannot reproduce.