SEEGEA

Product JSON-LD: generate, validate, maintain

JSON-LD (JavaScript Object Notation for Linked Data) is Google's recommended format for structured data. Unlike Microdata or RDFa, it does not modify your HTML structure — it is injected as a <script> block in the <head>. On e-commerce, it is the cleanest way to implement Product schema at scale.

4 min readApril 17, 2026

JSON-LD is the structured data format recommended by Google. It is a JavaScript block injected in the <head> that describes the content of a page in machine-readable format — without touching the HTML structure. For product pages, it enables rich snippets (price, stars, availability) in search results.

Complete JSON-LD Product example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Salomon XT-6 Women Trail Shoes Black",
  "image": ["https://example.com/images/xt6-front.jpg"],
  "description": "Trail running shoe for women with CONTAGRIP sole.",
  "sku": "SAL-XT6-W-BLK-41",
  "brand": { "@type": "Brand", "name": "Salomon" },
  "aggregateRating": {
    "@type": "AggregateRating",
    "ratingValue": 4.7,
    "reviewCount": 238
  },
  "offers": {
    "@type": "Offer",
    "url": "https://example.com/products/salomon-xt-6-women-black",
    "priceCurrency": "USD",
    "price": "149.99",
    "availability": "https://schema.org/InStock"
  }
}
</script>

Advantage: separates from HTML

JSON-LD is in a separate <script> block. Changing the schema does not require modifying page HTML. You can generate it dynamically server-side from product data.

Multiple schemas per page

Add BreadcrumbList, Organization, and FAQPage as separate JSON-LD blocks on the same page. Each block is read independently by Google.

Easy to validate

Paste the JSON-LD block directly in the Google Rich Results Test or the Schema Markup Validator. Syntax errors appear immediately — no need to deploy to test.
FormatPlacementMaintenanceGoogle preference
JSON-LDScript block in <head>Easy (separate from HTML)Recommended
MicrodataIn HTML attributesHard (mixed with HTML)Supported
RDFaIn HTML attributesHard (mixed with HTML)Supported
In Next.js, use <script type="application/ld+json"> inside your component or inject it via metadata with the other field. In Shopify, add a Liquid snippet in the product template that outputs the JSON-LD block with product variables.

Implement JSON-LD at scale

30 min call · no commitment

Implement JSON-LD at scale
Created in France (Annecy – Chantilly) · Email & Google Meet support

FAQ

JSON-LD is easier to maintain (separate from HTML), can be generated server-side, and is explicitly recommended by Google. Microdata is mixed into the HTML structure — making it harder to read and maintain. Both are valid, but JSON-LD is the modern standard.

See Seegea in action

Book a 30-min live demo on Google Meet. No commitment.

Book a demo