JSON-LD Structured Data: The Complete Guide
JSON-LD structured data is a block of machine-readable code — separate from a page's visible content — that tells search engines and AI systems exactly what an entity on the page is, using a shared vocabulary called schema.org. This guide covers what it actually does, which of the dozens of schema types are worth implementing, and the mistakes that get pages ignored or penalized.
What is a schema?
In SEO, a schema is a shared vocabulary that search engines understand: an agreed set of types, such as Organization, Product or Article, and properties, such as name, price or author, for describing what a page is about. The vocabulary everyone uses is schema.org. JSON-LD is simply the format you write it in, so "adding schema" usually means adding a JSON-LD block. You can build schema markup with a free generator instead of writing it by hand.
What JSON-LD actually is
JSON-LD stands for JSON for Linked Data. In practice, it's a single <script type="application/ld+json"> tag, placed anywhere in a page's HTML, containing a JSON object that describes one or more real-world entities on that page — an organization, a person, a product, an article — using property names defined by schema.org, a vocabulary jointly maintained by Google, Microsoft, Yahoo and Yandex.
It's one of three ways to add structured data to a page (the others are Microdata and RDFa, both of which require annotating the visible HTML itself with special attributes). Google has recommended JSON-LD as the preferred format since 2015, specifically because it doesn't touch your existing markup — you can add, edit or remove it without risking the layout or content of the page itself. That separation is also why it's the format every major structured-data plugin and generator, including Frost Rank's own JSON-LD Schema Generator, outputs by default.
| Format | How it's added | Touches visible HTML? | Google's stance |
|---|---|---|---|
| JSON-LD | One <script> block, anywhere in the page | No | Preferred format since 2015 |
| Microdata | itemscope/itemprop attributes on existing tags | Yes | Supported, not preferred |
| RDFa | property/typeof attributes on existing tags | Yes | Supported, not preferred |
What it actually does for SEO — and what it doesn't
The single most common misconception is that adding structured data improves rankings directly. Google has stated this plainly, multiple times: valid structured data does not, by itself, move a page up in search results. What it does is make a page eligible for a rich result — the price and star-rating snippet under a product listing, a breadcrumb trail in place of the raw URL, the business hours and address panel in a Knowledge Panel. Whether Google actually shows that rich result for a given search is a separate decision based on page quality, relevance and Google's own judgment about whether it's useful for that query.
The real, measurable benefit is click-through rate. A search result with a star rating, price or availability visually takes up more space and answers more of the searcher's question before they even click — which in practice tends to pull more clicks than a plain blue link at the same ranking position. That's a genuine traffic gain, just not the ranking boost people often assume they're buying.
Structured data has a second, newer audience too: AI answer engines like ChatGPT, Perplexity and Google's own AI Overviews parse the same JSON-LD when deciding what a page is about and whether to cite it. The schema itself doesn't need to change for this — it's the same schema.org vocabulary either way — but it does mean the value of getting it right has quietly increased even as its direct SEO weight stayed flat. If you're preparing a site for AI assistants more broadly, an llms.txt file is the complementary piece: where JSON-LD describes individual pages, llms.txt gives a model a one-file map of the whole site, and the llms.txt Generator can build one from your sitemap.
The schema types actually worth implementing
Schema.org defines hundreds of types, and trying to use all of them is a waste of time — most pages only ever need one or two. In practice, these six cover the overwhelming majority of real sites:
- Organization — for a company's homepage: name, logo, contact info, social profiles. Almost every commercial site should have exactly one of these.
- Person — for an individual's bio or portfolio page: name, job title, credentials, social profiles. Common on personal sites and author pages.
- Product — for an e-commerce product page: name, price, availability, and (only if genuinely present on the page) review/rating data.
- Article — for blog posts and news content: headline, author, publish/modified dates. This guide itself uses it.
- LocalBusiness — for a business with a physical location or service area: address, hours, phone number. A more specific subtype (Restaurant, Dentist, etc.) is often better than the generic type when one exists.
- FAQPage — for a page with genuine question-and-answer content, like this guide's FAQ section below. Google stopped showing FAQ rich results in May 2026, so it no longer earns a snippet in Google Search, but it's still valid schema.org markup that other search engines and AI systems can read, as long as every question and answer is visible on the page.
If you're choosing where to spend effort, start with the type that matches what the page actually is: Organization on the homepage, Product on product pages, Article on posts, LocalBusiness for a physical location. Those are the ones tied to rich results Google still shows. Add BreadcrumbList on any page deeper than the homepage, since it replaces the raw URL in the result with a readable trail.
These are exactly the six types Frost Rank's JSON-LD Schema Generator supports — deliberately, since between them they cover the vast majority of pages that benefit from structured data at all.
A real, working example
Here's a minimal, valid Organization schema — the same shape the free JSON-LD schema generator produces when you fill in a name, URL and logo:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Frost Rank",
"url": "https://frostrank.com",
"logo": "https://frostrank.com/logo.png"
}
</script>
Real pages usually need more than one type at once — a product page might need Product, BreadcrumbList and FAQPage together, for example. The way to combine multiple types in one script block without them conflicting is the @graph array, where each entity gets its own @id and other entities can reference it instead of repeating the same data:
{
"@context": "https://schema.org",
"@graph": [
{ "@type": "Organization", "@id": "https://frostrank.com/#org", "name": "Frost Rank" },
{ "@type": "WebPage", "publisher": { "@id": "https://frostrank.com/#org" } }
]
}
That @id reference pattern is exactly how Frost Rank's own homepage schema links its Organization, WebSite and WebPage nodes together — one canonical Organization object, referenced everywhere else it's needed, instead of a copy-pasted duplicate on every page.
Mistakes that get pages penalized or ignored
Most structured-data problems fall into one of four categories:
- Fabricated ratings or reviews. Adding
aggregateRatingorreviewmarkup without real, visible ratings on the page is explicitly listed in Google's structured data guidelines as a spam violation, and it's enforced with manual actions — not just a missing rich result. It's tempting precisely because star ratings are one of the highest-CTR rich results, which is exactly why Google checks for it. - Type mismatch. Marking a blog post as Product, or a directory listing page as a single LocalBusiness, describes something that isn't actually there. Google's guidelines call this out directly as a quality violation, separate from any technical syntax issue.
- Invalid or incomplete required properties. Each rich result type has its own required and recommended properties (documented on schema.org and cross-checked by Google's Rich Results Test) — a Product missing
priceor an Article missingheadlinesimply won't qualify for that rich result, even though the JSON itself is syntactically valid. - Duplicated or conflicting schema. Some CMS platforms and SEO plugins inject their own JSON-LD automatically. Adding a second, hand-written block for the same entity on the same page — rather than editing the existing one — gives Google two different descriptions of the same thing and lets neither win cleanly.
Common JSON-LD syntax errors
JSON is strict, and one stray character makes the whole block unreadable, so Google ignores all of it, not just the broken line. These are the errors that come up most:
- A missing or trailing comma. Every property except the last needs a comma after it, and the last one must not have one.
- Smart quotes. Pasting from a word processor turns
"into curly quotes, which JSON doesn't accept. Keys and string values need plain straight double quotes. - A wrong or misspelled
@type. Types are case-sensitive:"Organization"works,"organization"or"Organisation"doesn't, and the block is read as an unknown type. - Unescaped quotes inside a value. A product name containing
"must escape it as\", or the string ends early.
Broken, with a missing comma after "name" and a lowercase type:
{
"@context": "https://schema.org",
"@type": "organization",
"name": "Frost Rank"
"url": "https://frostrank.com"
}
Fixed:
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Frost Rank",
"url": "https://frostrank.com"
}
The easiest way to avoid all four is not to hand-write the block: generate valid JSON-LD from a form and paste the output as is. If you're editing JSON by hand anyway, the JSON Formatter & Validator points to the exact line of a syntax error.
How to test it before you ship it
Two checks, in order: first, run the JSON itself through schema.org's own validator to confirm it's syntactically valid and uses real properties. Then test the actual live URL — not just the code snippet — through Google's Rich Results Test, which checks Google's specific eligibility requirements for whichever rich result you're targeting. The two checks catch different problems: a schema.org-valid block can still fail Google's stricter eligibility rules for a specific rich result type, and that only shows up in the second test.
Read the Rich Results Test output in three levels. Errors (a missing required property, an invalid value) make the item ineligible and need fixing. Warnings are missing recommended properties: the item can still qualify, but adding them makes a rich result more likely. "No items detected" usually means the script never reached the page, for example because a JavaScript framework adds it too late or a caching plugin strips it, so view the page source to confirm it's there. After launch, Search Console's enhancement reports show the same errors across every page of a given type, which is where a template bug that broke hundreds of pages at once shows up.
Frequently asked questions
Neither. Structured data isn't a general ranking factor, and valid markup only makes a page eligible for a rich result; Google decides whether to show one based on page quality and the query. What it can do is raise click-through rate from the same position when a rich result does appear. See what structured data actually does.
JSON-LD, for almost every site. All three describe the same schema.org data and Google reads all three, but Microdata and RDFa are attributes woven into your visible HTML, so a template change can silently break them. JSON-LD sits in one separate script block you can add, edit or generate without touching the page layout, which is why Google recommends it. See the three formats compared.
The one that accurately describes what the page is about: Article for a blog post, Product for a product page, LocalBusiness for a local business, Person for a bio. See the six types worth implementing.
Yes, and most pages do. Combine them in one script block with an @graph array, linking entities by @id instead of repeating them. See a working @graph example.
No separate markup — the same JSON-LD that targets Google's rich results is what AI answer engines parse too, since it's the same schema.org vocabulary either way. What does matter for AI citation specifically is pairing it with a clear, direct-answer sentence in the visible text near the top of the page, which AI systems tend to lift verbatim.
Because validators check different things: schema.org checks the syntax and properties, while Google's Rich Results Test also applies Google's stricter eligibility rules. See how to test structured data.
No. Google treats fabricated aggregateRating or review markup as spam and enforces it with manual actions. See the mistakes that get pages penalized.
Written from the same structured-data audits that shaped Frost Rank's own JSON-LD Schema Generator — including the exact @type/@context Blade-parsing gotcha and the @id cross-referencing pattern used on every page of this site.
Available for SaaS & AI automation projects → Hire me · Portfolio · Services
Was this guide helpful?
Rate it and leave a comment — takes 10 seconds, and genuinely helps decide what to fix or build next.