Glossary · Technical SEO

JSON-LD: What It Is and How to Add Structured Data to Your Pages

JSON-LD is a small block of code that labels what your page is about. Google recommends it, and it is easier than it looks.

Get a free JSON-LD review

Reply within 1 business day from the person who would do the work.

Sent by email through FormSubmit. No spam, no sharing.

AI Overview Definition

JSON-LD, short for JavaScript Object Notation for Linked Data, is a format for adding structured data to a web page. A script block labels the content, such as an article, product or organization, in a way search engines can read. Google recommends it, but markup alone does not guarantee rich results.

Key Takeaways

  • Google recommends JSON-LD because it is easier to implement and maintain at scale.
  • Markup must describe visible content. Google says not to add structured data about information users cannot see.
  • Structured data makes a page eligible for some rich results. It does not guarantee them.
  • Test with the Rich Results Test before launch and watch Search Console reports after.

Your developer asks whether to use JSON-LD, Microdata or RDFa. Your SEO plugin has a toggle with three schema options. Nobody wants to read a specification.

Here is the short version: use JSON-LD, mark up only what the page shows and test it. The rest is detail.

What JSON-LD is, in plain terms

Web pages are written for people. Structured data adds a second layer written for machines, describing the page in a fixed vocabulary. The vocabulary comes from schema.org, and JSON-LD is one way of writing it down. The W3C publishes the JSON-LD specification, which defines it as a JSON-based format for linked data.

Google lists three accepted formats: JSON-LD, Microdata and RDFa. Its documentation says all three are equally fine as long as the markup is valid, but it recommends JSON-LD when your setup allows, mainly because it sits apart from the visible text and is easier to maintain at scale. Microdata wraps tags around the visible HTML, which gets messy fast.

What it looks like

This is a short example for an article. It sits inside a script tag, in the head or body of the page.

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "What Is Link Building?",
  "datePublished": "2026-10-23",
  "author": {
    "@type": "Person",
    "name": "Chenthil Kumar"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Digimarketlabs"
  }
}
</script>

Read it like a form. @type says what the thing is. The other keys are its properties. Nested objects, such as the author, describe related things. Every value should match something visible on the page, such as the headline, the date and the author's name.

Is your structured data helping or hurting?

Send your site. We test your key templates and list the errors and the safe wins.

Get the free review

What it can and cannot do

Structured data helps search engines understand a page, and it can make the page eligible for rich results, such as review snippets, product details, event listings or breadcrumbs. Google's gallery lists the supported types, including Article, Breadcrumb, Event, Local business, Organization, Product, Recipe, Review snippet, Software app and Video.

It does not guarantee a rich result. Google's documentation says valid markup does not always display as a rich result, and that appearance differs from what you marked up. It also does not boost rankings directly. And there is no special markup for AI Overviews. Google's AI guide says structured data is not required for generative AI search and that there is no special schema.org markup for it.

Rules also change. Google reduced FAQ rich results in 2023, so adding FAQ markup no longer promises a bigger listing. We still use it on this site because it describes real questions and answers honestly, but we do not sell it as a ranking trick.

Which types matter for most sites

TypeUse it forNotes
OrganizationYour company, logo and official profilesPut it on the homepage or about page
ArticleBlog posts and guidesInclude author, dates and headline
BreadcrumbListSite hierarchyMatches the visible breadcrumb trail
LocalBusinessShops and service businessesName, address, phone and hours must match your listings
Product and OfferItems for salePrice and availability must be accurate
Review snippetReviews of items or servicesOnly genuine reviews, following Google's rules
FAQPageReal question and answer contentLimited rich result display today

Start with Organization, Article and BreadcrumbList, then add what fits your business.

If you run a local business, the local business guide lists the properties Google reads. Pair it with clean listings from our local citations entry.

How to add it and test it

  1. Choose the type. Match it to what the page is, not to a rich result you hope to get.
  2. Generate the code. Use your CMS or SEO plugin, or write the block by hand from schema.org and Google's documentation.
  3. Check it against the page. Every claim in the markup must appear on the page. Remove anything invisible to readers.
  4. Test before launch. Paste the URL or code into Google's Rich Results Test. Fix errors, then warnings if they matter.
  5. Monitor after launch. Watch the enhancement reports in Search Console. Template changes can break markup site-wide without warning.

Google's advice is to test during development and monitor after deployment, because templating and serving issues can quietly break markup.

Organization markup, the one that tells who you are

Organization markup tells search engines your name, logo, website and official profiles. Google's documentation covers the properties it reads, including name, url, logo and sameAs, which lists the other pages that represent the same organization, such as your LinkedIn page. Put it on the homepage or the about page and keep the details identical to what the site shows.

The point is clarity. When a search engine or an assistant meets your brand name, a clean block of Organization markup plus consistent facts across the web helps it tell you apart from a similarly named company. It does not make you rank. It makes you easier to identify. Our entity SEO entry explains how that fits into the bigger picture.

Who should write the markup

For most small sites, a well-configured SEO plugin handles Organization, Article and Breadcrumb markup adequately. Check what it outputs. Plugins sometimes add types that do not match the page, or leave fields blank. For custom sites, a developer can generate the block from the same data that fills the page, which keeps the two in sync automatically.

Avoid hand-copying blocks from page to page. The moment someone edits a price or a date on the page and forgets the markup, the two disagree, and disagreement is the most common cause of ignored or flagged structured data. Generate it from one source wherever you can, and add structured data checks to your release routine.

Mistakes to avoid

Marking up content that is not on the page, such as a review count you invented or a price you do not show. Copying a competitor's markup, including their name and address. Duplicating the same block ten times on one page. Using generic plugin defaults that claim your page is a Product when it is an article.

Another trap is fake or unearned review markup. Self-serving ratings written by the business or taken from elsewhere break Google's guidelines and invite a manual action. If you do not have genuine reviews, do not mark them up.

Scripts sometimes inject JSON-LD after load. Google reads it that way too, but test the rendered result. Our JavaScript SEO entry explains why rendered output differs from source. The schema for AI Overview guide covers what markup does and does not do for AI answers.

One last habit: keep a short record of which templates carry which markup types, with the date you last tested each. When the site is redesigned, the record is your regression list. Without it, markup quietly disappears during a rebuild and nobody notices until a report in Search Console turns red a month later.

If a page changes purpose, such as an article that becomes a product page, change the markup at the same time, since a stale type is worse than none.

FAQ

JSON-LD: questions people ask

What does JSON-LD stand for?

JavaScript Object Notation for Linked Data. It is a format for adding structured data to a page.

Is JSON-LD better than Microdata?

Google says all three formats are fine if valid, but recommends JSON-LD because it is easier to implement and maintain.

Does JSON-LD improve rankings?

Not directly. It helps search engines understand a page and can make it eligible for rich results.

Where do I put JSON-LD?

In a script tag with type application/ld+json, in the head or body of the page it describes.

How do I test my markup?

Use Google's Rich Results Test during development and the enhancement reports in Search Console after launch.

Want structured data that is accurate and safe?

We write and test markup for your key templates.

See the audit service

How we wrote this page

Chenthil Kumar wrote this entry from the sources listed below and from audit work on client sites, and the Digimarketlabs Editorial Team checked it against our editorial guidelines. Figures carry a source and a date, and where a study shows correlation only, we say so. Search features change often, so check the linked documentation before you act on a detail. Last updated October 23, 2026.

Sources & further reading

CK

Written by Chenthil Kumar

SEO, AIO/GEO & Inbound Marketing Specialist at Digimarketlabs, based in Chennai. Reviewed by the Digimarketlabs Editorial Team. Last updated October 23, 2026.