Core writing

JSON-LD Mistakes That Keep Rich Results From Appearing

Relative image URLs, empty offers, markup that is not on the page, and several conflicting entities are the usual reasons a rich result never starts.

On this page
  1. An error that makes the JSON unparsable
  2. Missing @context, and the wrong @type
  3. A template that comments the script out
  4. Relative URLs and protocol-relative URLs
  5. Prices, the word “in stock,” and dates
  6. A tab that is not in the HTML Google renders
  7. Copied schema, and stars with no reviews
  8. A leftover FAQPage is not a missing offer
  9. A broken offer and the fixed offer
  10. Checklist
  11. Name the failure before you edit

A rich result fails in two different ways, and they are not fixed the same way. Either the JSON-LD never parses, or it parses and still does not qualify. A trailing comma is the first kind. A Product offer written as $48 and in stock, or an FAQPage left in place after FAQ rich results ended, is the second kind.

Google’s structured data policies require the markup to represent the visible page. They say not to mark up content readers cannot see, and not to mark up misleading content such as fake reviews. A manual action for spammy structured data removes rich-result eligibility. Google says that action does not change how the page ranks in web search. Schema does not raise rankings by itself. Syntax errors are still worth fixing. They are not a ranking lever.

Work in order: parse, then type, then values, then the rendered HTML. Adding another block while the first script does not parse only hides the next error in the same broken file.

An error that makes the JSON unparsable

JSON rejects a trailing comma, so {"price": "48.00",} never parses. It also rejects comments and single quotes. Smart quotes, the curved “ and ”, are not ". The parser stops. It does not keep the later properties.

An unparsable script produces no objects, so a missing price inside it is never reported as a missing field. Search Console’s unparsable structured data report is this class. A missing-field report means the file parsed. Fix the comma, comment, or curly quote first. The validation guide separates the checks. Two script elements are two documents. One bad @graph drops every node in that script. A second copy of the same Product, added “to be safe,” just creates two prices.

Missing @context, and the wrong @type

A file can be valid JSON and still use the wrong vocabulary. @context should be https://schema.org. Without it, Product is a string some consumer might assume. Set the context. Do not omit it because a plugin “usually adds it later.” Later is how the live HTML ships without it.

The type string is exact. Product is not Products. Organization is not Organisation. BlogPosting is not Blog Post. Offer belongs in offers on a Product. A price sitting on the Product with no Offer is not the shape Google’s product documentation uses. These files parse. They name a type the rich result rules do not use, or they put the value on the wrong object. The Rich Results Test can flag a missing offer. It will not guess that Products was supposed to be Product.

A template that comments the script out

JSON-LD has to be a script element with type="application/ld+json". A template that wraps the block in an HTML comment, between <!-- and -->, has not published a script. The braces can be perfect and still invisible to a parser.

Inside a real script, the HTML parser still ends the element at a closing script tag, including one that appears inside a JSON string. That truncates the document. Write a less-than sign as \u003c. Do not move the object into a div. The script’s text also has to be the JSON alone: a sentence before the opening brace, or a word after the closing brace, makes it unparsable.

Relative URLs and protocol-relative URLs

Image, logo, and page URLs in this markup need a scheme and a host. https://example.com/photos/kettle.jpg is absolute. /photos/kettle.jpg is relative. //example.com/photos/kettle.jpg is protocol-relative: the host is present and the scheme is not. Google’s examples for images and offers use absolute http or https URLs. A path that depends on the current page, or a URL that borrows a scheme from the browser, is not that form.

The same failure hits image, logo, url, and an Offer’s url. Publish the absolute URL and open it. A 404, a login wall, or an HTML error page where an image should be is still a broken image, even when the string starts with https://.

Prices, the word “in stock,” and dates

price is a number and priceCurrency is a separate ISO 4217 code. Forty-eight US dollars is "price": "48.00" with "priceCurrency": "USD", not "price": "$48" and not "48 USD". Use a period as the decimal separator, as Google’s merchant listing examples do.

availability is an ItemAvailability URL. In stock is https://schema.org/InStock. Out of stock is https://schema.org/OutOfStock. The words in stock, yes, and available are not those URLs. Do not leave a theme default of InStock on a button that says sold out.

Dates are ISO 8601. 25 October 2026 is 2026-10-25, not 10/25/2026. The slash form is ambiguous, and it is not the date type. priceValidUntil uses the same pattern. If a page states a date and no time, do not invent an hour.

A tab that is not in the HTML Google renders

A price that is missing from the first response, and appears only after a click fetches a tab, is not in the HTML Google renders. If URL Inspection does not show the price, do not mark it up. Put the price and the stock state in the HTML first.

Text that is in the HTML and only collapsed with CSS is a different case, but Google’s rule is still not to mark up content readers cannot see. The safe case is text in the document that a reader can read. Check rendered HTML, not the JSON file in the repo.

Copied schema, and stars with no reviews

A theme’s demo name, image, SKU, and price often survive onto a page that sells something else. The file parses, and any rich result describes the demo. That mismatch is misleading. Replace every field, including sku, gtin, and mpn, from the page you publish.

aggregateRating says reviews are summarized on the page. If none are visible, the node is false. A 4.8 copied from a spreadsheet, or stars you typed in, is not a set of reviews. Google expects reviews a reader can see and does not treat self-serving reviews of your own product as eligible. Omit the rating until the reviews are on this URL. The missing-field guide helps when Search Console names a property. It is not a reason to invent one.

A leftover FAQPage is not a missing offer

FAQ rich results stopped on 7 May 2026 for every site, and the FAQ docs were removed on 15 June 2026. The search gallery, updated 16 October 2026, does not include FAQ. A valid FAQPage can remain schema.org. The Rich Results Test will not treat it as a supported rich result. That is a retired feature, not proof that the Product is broken, and not the reason a price is missing.

A selling page usually fails because offers has no numeric price, no priceCurrency, no availability URL, or a relative image. Deleting FAQPage does not create an offer, and adding an offer does not restore FAQ rich results. If the Product script is unparsable, fix that first. If it parses and offers is missing, the FAQ node is a distraction. HowTo is the same kind of distraction: its rich result left in 2023, mobile in August and desktop on 13 September. A retired-type note is not a syntax error. A Product field error is the offer, the image, the rating, or the match to the page.

A broken offer and the fixed offer

This product is fictional: a Cedarline pour-over kettle at 48 USD, in stock through 25 October 2026. The first script fails twice. The trailing comma means it never parses, so the bad values are never even read. Remove the comma and the image is still relative, the price is still $48, availability is still the words in stock, and the date is still 10/25/2026. The visible page would show the same kettle either way. Only the JSON changes.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Cedarline Pour-Over Kettle",
  "image": "/photos/kettle.jpg",
  "offers": {
    "@type": "Offer",
    "price": "$48",
    "priceCurrency": "USD",
    "availability": "in stock",
    "priceValidUntil": "10/25/2026",
  }
}

The fixed script parses. The image is absolute, price is 48.00 with priceCurrency USD, availability is https://schema.org/InStock, and the date is 2026-10-25. The offer URL is the page where the shopper buys it.

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Cedarline Pour-Over Kettle",
  "image": "https://example.com/photos/kettle.jpg",
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/kettle",
    "price": "48.00",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock",
    "priceValidUntil": "2026-10-25"
  }
}

Neither sample includes aggregateRating. The fictional page has no reviews, so a rating would be the stars-with-no-reviews bug. Build the offer in the Product generator and compare it with the price rendered on the page, not with a spreadsheet the template never shows.

Checklist

  1. Parse the script. Remove trailing commas, comments, smart quotes, and any sentence before or after the object.
  2. Confirm a script of type application/ld+json, not an HTML comment, and no raw closing script tag inside a string.
  3. Set @context to https://schema.org and @type to the exact type you mean.
  4. Rewrite image, logo, and page URLs as absolute https, then open each one.
  5. On a Product, put a numeric price and a priceCurrency on an Offer. Set availability to a schema.org ItemAvailability URL.
  6. Write dates as YYYY-MM-DD. 25 October 2026 is 2026-10-25.
  7. Compare the node with the rendered HTML, including tabs. If the fact is not in that HTML, do not mark it up.
  8. Delete demo products, leftover identifiers, and ratings the page does not show.
  9. If the only complaint is FAQPage or HowTo, inspect the Product offer before you treat the retired type as the outage.

Name the failure before you edit

Unparsable JSON never becomes a Product, so start there. A parsed file with the wrong @type, a relative or protocol-relative URL, a price of $48, availability written as in stock, or a date of 10/25/2026 is a value problem. Markup copied from another product, a rating with no reviews, or a price that exists only in a tab Google does not render is a match problem. A note that FAQ is no longer a rich result is a gallery problem. Product is still in the gallery. Fix the class you actually have. A second copy of the same broken offer does not change which class it is.