Skip to main content
Glossary

JSON-LD

By · Updated
Quick definition

JSON-LD (JavaScript Object Notation for Linked Data) is the W3C-recommended format for embedding structured data into web pages using a JSON script block, allowing search engines to read explicit metadata about page content.

JSON-LD in plain English

JSON-LD is a script you place inside a web page that tells search engines exactly what the page is about in a machine-readable format. On a product page, for example, a JSON-LD block declares the product name, price, currency, availability, SKU, brand, aggregate rating, and review count as structured fields rather than leaving search engines to guess from the visible HTML.

Mechanically, JSON-LD lives inside a <script type="application/ld+json"> tag, typically in the document head or body. The script contains a JSON object with a @context (almost always set to https://schema.org) and a @type (such as Product, Article, Organization, BreadcrumbList, or FAQPage), followed by properties defined by that schema type. Search engine crawlers parse the JSON, validate it against the declared schema, and use it to generate rich results, knowledge panel entries, and AI-generated answers.

Done well, JSON-LD mirrors what is visibly on the page, uses the correct schema type for the content, includes all required and recommended properties for that type, and validates cleanly in Google's Rich Results Test and Schema.org validator. Done poorly, it contradicts visible page content, uses generic Thing types instead of specific ones, omits required fields like price or availability on Product schema, or marks up content that does not exist on the page — all of which trigger manual actions or cause rich results to disappear entirely.

For ecommerce product pages, Google requires at minimum name, image, and either offers, review, or aggregateRating for Product schema to qualify for rich results. Stores running review, price, and availability markup correctly are eligible for star ratings, price displays, and stock status directly in search listings.

Why json-ld matters for ecommerce

Ecommerce listings live or die on what shows up in the SERP snippet. A product page with valid JSON-LD displays star ratings, price, and in-stock status directly in Google results and gets cited by AI search engines with accurate product details. A product page without it shows a plain blue link competing against richer-looking competitors. The decision shows up in concrete places: whether a Shopify theme's default schema is sufficient, whether to install a schema app, whether to add FAQPage markup to category pages, and whether broken markup is silently disqualifying the entire catalog from rich results.

Deeper dives on this term

Focused pages that go deeper than the definition — comparisons, platform-specific guides, operational walkthroughs.

Compare

JSON-LD vs BlogPosting Schema: What's the Difference?

JSON-LD vs BlogPosting Schema: understand the exact difference, how they overlap, and when to use each for ecommerce SEO.

Read →
Compare

JSON-LD vs FAQPage Schema: What's the Difference?

JSON-LD vs FAQPage Schema: understand what separates the format from the content type, and when ecommerce pages need both.

Read →
Compare

JSON-LD vs HowTo Schema: What's the Difference?

JSON-LD vs HowTo Schema: understand the difference between a syntax format and a vocabulary type, and when ecommerce pages need bo

Read →
Compare

JSON-LD vs Knowledge Graph: What's the Difference?

JSON-LD vs Knowledge Graph: understand what each term means, how they differ in mechanics, and how ecommerce sites use both togeth

Read →
Compare

JSON-LD vs Schema Markup: What's the Difference?

JSON-LD vs Schema Markup: understand the exact difference, how they overlap, and which to use for ecommerce structured data in 202

Read →
Platform

JSON-LD for Shopify Stores

How JSON-LD works on Shopify stores: theme limitations, app options, and practical workarounds for product, review, and breadcrumb

Read →
Platform

JSON-LD for Wix Stores

How JSON-LD structured data works on Wix stores: platform limits, built-in schema, third-party apps, and workarounds for 6–8-figur

Read →
Platform

JSON-LD for WooCommerce Stores

How WooCommerce stores implement JSON-LD structured data: plugin options, theme conflicts, product schema gaps, and workarounds fo

Read →
How-to

How to implement json-ld for an Ecommerce Store

A step-by-step guide to implementing JSON-LD structured data on an ecommerce store—covering product, breadcrumb, and organization

Read →
Checklist

JSON-LD Checklist: 12 Items Every Ecommerce Store Should Audit

Audit your ecommerce store's JSON-LD with 12 specific checks. Each item includes clear pass/fail criteria to fix structured data f

Read →

Frequently asked questions

What is JSON-LD in simple terms?

JSON-LD is a block of code added to a web page that describes the page's content in a structured format search engines understand. Instead of forcing Google to interpret a product page from HTML alone, JSON-LD explicitly states the product name, price, rating, and availability as data fields. It is the format Google recommends for adding schema markup.

How long should a JSON-LD script be?

A typical product page JSON-LD block runs 30 to 80 lines and covers Product, Offer, and AggregateRating schemas. Article pages run shorter at 15 to 40 lines. There is no hard size limit, but every property included must reflect content actually visible on the page. Bloated markup with irrelevant fields triggers no benefit and risks validation errors.

JSON-LD vs Microdata: which is better?

JSON-LD is the format Google officially recommends, while Microdata is an older inline approach that mixes schema attributes directly into HTML tags. JSON-LD wins on three points: it sits in a single script block separate from markup, it is easier to generate dynamically from a CMS, and it does not break when the visible HTML is restyled. Microdata remains valid but is no longer the preferred format.

How do I add JSON-LD to a Shopify or WooCommerce store?

On Shopify, most modern themes include basic Product JSON-LD by default in the theme.liquid or product.liquid file, which can be edited directly or extended with a schema app. On WooCommerce, the Yoast SEO or Rank Math plugin generates Product schema automatically. After installation, validate every template type using Google's Rich Results Test before relying on the output.

Does JSON-LD actually improve SEO rankings?

JSON-LD is not a direct ranking factor, but it determines eligibility for rich results, which materially affect click-through rate. Product pages with valid Product and Review schema display star ratings and prices in search listings, while pages without it show plain snippets. Higher CTR from richer SERP appearances drives more qualified traffic at the same ranking position.

MG
Written by

Matt is the founder of RunOctopus. He built All Angles Creatures from zero to page-1 rankings in reptile feeder insects in under 60 days using exactly this method — turning a hard, entrenched niche into RunOctopus's proof store for programmatic SEO and AI search citation.

Connect on LinkedIn →

See what Otto would build for your store

Free architecture preview. No card required. Five minutes.

Generate Preview →