Skip to content

What JSON-LD Is and How Google Uses It

A search for "trail running shoes" rarely starts with ten blue links anymore. The top of the page is product carousels with prices, star ratings, "in stock" labels and lists of sellers. Those results are built from structured data: a machine-readable description of what a page is about. Most sites publish it as JSON-LD.

This post explains what JSON-LD is, what Google does with it, and what it does and doesn't do for your place in search.

What JSON-LD is

JSON-LD (JSON for Linked Data) is ordinary JSON with a few keywords that say what each object is. On a web page it sits in a <script> tag that visitors never see:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://shop.example.com/products/TRS-42#product",
  "name": "Trail Running Shoe",
  "sku": "TRS-42",
  "image": "https://shop.example.com/images/trs-42.jpg",
  "brand": {"@type": "Brand", "name": "Northpeak"},
  "aggregateRating": {"@type": "AggregateRating", "ratingValue": 4.6, "reviewCount": 214},
  "offers": {"@type": "Offer", "price": 89.90, "priceCurrency": "EUR", "availability": "https://schema.org/InStock"}
}
</script>
  • @context names the vocabulary: Schema.org, which Google, Bing and others share.
  • @type says what the thing is: a Product, an Organization, a LocalBusiness, a Review.
  • @id gives it a stable address, so other pages and other markup can refer to the same thing.
  • The other fields are Schema.org properties: price, priceCurrency, availability, ratingValue.

Without it, a search engine has to guess from your HTML that "€89.90" is the price and not a shipping fee. With it, the page says so outright.

Google reads three formats for structured data: JSON-LD, Microdata and RDFa. It recommends JSON-LD as "the easiest solution for website owners to implement and maintain at scale". JSON-LD sits apart from your HTML, so a redesign doesn't break it.

How Google uses it

Googlebot crawls the page, finds the JSON-LD and checks it against what each search feature needs. A page whose markup qualifies becomes eligible for a rich result: a search result with more than a title and a snippet.

For products and businesses, the features that come from structured data include (Google's product structured data guide):

Feature What searchers see
Product snippet Ratings, review information, price and availability under your result
Merchant listing Your offer in popular product results, the Shopping knowledge panel and Google Images
Popular products A visual carousel of products for sale
Shopping knowledge panel Detailed product information with a list of sellers
Google Images and Lens Images annotated as products for sale, with price and availability
Review snippets Star ratings for products, services, organizations and places
Local business details Address, opening hours and contact details for a store

Google distinguishes two kinds of product page: - Product snippets are for pages where people can't buy the product directly, such as reviews. - Merchant listings are for pages where customers can buy it. They need more: a name, an image, and an offer with its price and currency, with availability recommended.

Does it get you to the top?

Not on its own, and Google doesn't claim it does. Its documentation says markup "enables a feature to be present, it does not guarantee that it will be present". A structured data manual action costs a page its rich results but "doesn't affect how the page ranks". Structured data isn't a lever that moves a page from position eight to position one.

What it changes is what your result looks like and where it can appear:

  • It decides which results you can be in at all. Popular product carousels, the Shopping knowledge panel and product-annotated images take up the top of many product searches. A page without product data isn't eligible for them, however well its plain link ranks.
  • It decides how your result competes for the click. A result with a price, "in stock" and 4.6 stars next to one without them is a different offer to a shopper. Google cites these results from companies that measured it:
  • Rotten Tomatoes: a 25% higher click-through rate on pages with structured data.
  • Nestlé: an 82% higher click-through rate for pages shown as rich results.
  • The Food Network: 35% more visits after enabling search features on 80% of its pages.
  • It removes doubt. Prices and availability that the markup states can't be misread from the page's text.

Ranking still depends on what it always did: content that answers the search, a fast and usable page, and other sites linking to it. Structured data turns a good position into a result people see and click.

What Google expects

Google's structured data policies come down to describing the page truthfully:

  • Mark up what visitors can see. The markup must describe the page's own content. A price in JSON-LD that differs from the price on the page is a common reason a product loses its rich result.
  • Only real reviews. Ratings that aren't from actual users can lead to a manual action.
  • Fill in the required fields, and the recommended ones where you have them: Google uses the extra information when it ranks rich results.
  • Keep it current. Availability and price change; markup copied once into a template doesn't.

Check your pages with the Rich Results Test, and watch the rich result reports in Google Search Console, such as the merchant listings and product snippets reports, after you publish.

Beyond Google

JSON-LD isn't only for Google. Schema.org is a shared vocabulary, and other search engines and the tools that compare products and businesses read the same markup. A page that states its facts outright is easier for any of them to use than one they have to interpret from its layout.

Publishing it for every product and service

The hard part of JSON-LD isn't the format. It's keeping it right for every page: the current price and stock, the brand's name rather than its database id, the newest reviews, and your page addresses rather than internal ones.

ObjectsGrid stores your catalog in Schema.org already, so it can answer the document itself. Ask for an object as application/ld+json:

GET https://apis.objectsgrid.com/products/p-123?lang=en
Accept: application/ld+json

The answer is the finished JSON-LD for that product's page: - Embedded objects: its brand, its offers and its newest reviews are in the document. - Your own addresses: every address is on your domain, from the page address templates you give your Organization Account once, such as https://shop.example.com/products/{sku}#product. - One language: with ?lang=, the text comes in that language. - No personal data: a review's author is never named.

The same works for ProductGroups, ProductModels, Offers, OfferCatalogs, Brands, Reviews, Ratings, Organizations, Places, Services, ServiceChannels, Events, Courses, MemberPrograms and their tiers, Demands, and the return policies and shipping services your Organization and Offers reference, which the documents embed as Google's merchant listings expect. When a price or the stock changes, the next page render gets it.

See JSON-LD for your pages for the setup and an example of every type, and Schema.org structured data straight from your backend for why the data already fits.