Shopify Builds>Primitives>Structured data (JSON-LD)

Structured data (JSON-LD)

Definition

Structured data is machine-readable markup that states what a page is about in a shared vocabulary. On the web that vocabulary is schema.org, and the format search and answer engines prefer is JSON-LD — a script block declaring typed entities such as Product, Offer, FAQPage and BreadcrumbList, along with the relationships between them, so a parser doesn't have to infer meaning from layout.

Documented at https://schema.org/.

How we've used it

We write it by hand, in the theme, server-side, so the markup is in the first response and no extra script runs on the page. The shape is a cross-referenced graph rather than nested blobs: separate nodes wired to each other by identifier, with every brand and publisher reference anchored to one organization node so entities accrue instead of scattering. Product cards carry their own graph, which means a collection grid emits real per-product markup rather than a generic list. The awkward part is that Liquid emits strings, not JSON, so anything merchant-authored has its entities and quotes normalized before serialization, and a failed image lookup falls back instead of shipping a document that won't parse.

Builds using it

Related entities

Metafields · Shopify Markets · Liquid snippets · content_for_header

Builds