Microdata vs JSON-LD: Which Product Markup Do Agents Prefer?
Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: Agents read both, but they are not equals. JSON-LD — a separate script block carrying Product and offers — is the primary layer: AXO's product-feed dimension gives it 40 points, and its structured-data dimension is built entirely around ld+json validity. Microdata (itemscope/itemtype attributes woven into your visible HTML) earns 25 separate points as a second layer, valuable because it cannot drift from the rendered page. If you can only ship one, ship JSON-LD; keep microdata where your theme already emits it, and verify both in the free audit.
What is microdata?
Microdata is a way of annotating visible HTML elements with schema.org meaning using itemscope, itemtype, and itemprop attributes on the elements themselves — the price element declares itself itemprop=price, the container declares itemtype Product. Unlike JSON-LD's separate block, microdata lives inside the markup that renders the page.
How each format represents the same product
JSON-LD says it in one place: a script block, a Product object, an offers object with price, currency, availability. Microdata says it distributed across the page: the product container carries itemscope and itemtype=.../Product, and descendants carry itemprop for name, image, price, and so on, each attached to the element that displays the value.
The representational difference drives everything else. JSON-LD is easy to generate, validate, and keep canonical — one block, one parser check. Microdata is inseparable from the template's visual structure: redesign the price display and you may move, duplicate, or delete the annotation. Each format's strength is the other's weakness, which is why serious stores historically ran both and why AXO scores both.
What the scoring tells you about agent behaviour
AXO's product-feed dimension: JSON-LD product markup 40 points, microdata 25, OpenGraph/data attributes 10, feed 15. The structured-data dimension spends all 100 of its points on JSON-LD presence, validity, @context, and @type. Read as a map of agent priorities: the ld+json block is the document agents parse first and most completely, and its validity is existential — a broken block is discarded — while microdata functions as corroboration and fallback.
No agent-facing guidance anywhere suggests microdata alone is sufficient for transactional confidence. It lacks a natural home for the full offers semantics agents need, and its distributed nature makes completeness (did every field survive the template?) hard to verify. Treat microdata as the second layer it scores as.
The drift argument, both ways
Microdata's famous virtue: because the annotation rides on the displaying elements, the stated price is the displayed price by construction. JSON-LD, generated separately, can drift — a sale updates the page but not the block. That virtue is real, and it is answered by generation discipline, not by format choice: emit the JSON-LD from the same product record, in the same request, and drift has no mechanism. A JSON-LD block hand-maintained in a theme file, on the other hand, drifts exactly as critics warn.
Microdata drifts too, by a different mechanism: template edits. A designer's innocent refactor of the price component can drop itemprop=price or nest it outside the itemscope, and nothing visible changes — the page looks identical while the annotation silently amputates a field. Both formats therefore need automated checking; neither is self-maintaining. The audit checks both because both fail in the wild.
When microdata earns its keep
Keep microdata when your theme already emits it correctly — deleting a working second layer to purify your stack buys nothing and loses 25 points of corroboration. It also earns its keep on platforms where injecting a clean JSON-LD block is genuinely hard but item attributes are editable, and as transitional coverage while a JSON-LD rollout proceeds template by template.
Do not build new microdata as your primary layer in 2026. The tooling, validators, guidance, and agent parsers all centre JSON-LD; new investment goes where the ecosystem maintains it. And never let microdata's presence excuse missing offers data in JSON-LD — the layers are complements in scoring because agents treat them as complements in reading, with JSON-LD senior.
Checking both layers on your pages
For JSON-LD: extract the blocks, parse them, confirm Product and offers. For microdata: search the served source for itemscope with a Product itemtype and count the occurrences, then spot-check that itemprop price and name sit inside the scope. AXO's audit reports both in one pass: the product-feed findings name whichever layer is missing, so a single paste tells you the state of each.
A subtle trap: some themes emit microdata for a different vocabulary version or with itemtype on a wrapper that excludes the price. The audit counts a Product itemscope as presence, but agents extracting fields will find the same incompleteness you would find by reading carefully. Presence is the scored floor, not the ceiling — completeness is your own standard to hold.
The verdict
Priority one: complete, valid JSON-LD with offers on every product page. Priority two: a linked feed. Priority three: keep microdata if present and correct; add it only where JSON-LD is impossible. That ordering mirrors the points, the parsers, and the maintenance reality. Stores that invert it — polishing microdata while their JSON-LD omits availability — are decorating the fallback while the primary layer fails.
Run the free audit and read the product-feed findings: they will name your missing layer in one sentence. Then read the OpenGraph layer's role — the third, lightest layer — to complete the picture of how agents assemble a product from everything you publish.
The 5-action two-layer check
- Audit once, read both findings: the product-feed dimension names which of JSON-LD and microdata is missing.
- Perfect the JSON-LD first: valid, typed, with offers — it carries the transaction and the structured-data dimension.
- Inspect microdata in served source: itemscope Product present, itemprop price/name inside the scope.
- Keep what works: a correct existing microdata layer stays; never delete corroboration for purity.
- Generate JSON-LD from product data so the drift argument against it has no mechanism on your store.
Worked example: the theme that had the second layer only
Example — fictional, for illustration. A furniture store's mature theme emits careful microdata — itemscope Product wrappers, itemprop name, image, price — but no JSON-LD at all. First audit: product feed 50 (microdata 25 + OpenGraph 10 + feed 15), structured data 0, because that dimension reads only ld+json. The store is genuinely half-readable: agents can extract basics from microdata but find no offers semantics and no validity-checked block to trust.
Adding generated JSON-LD alongside the microdata (not replacing it) takes the pair to product feed 90 and structured data 100, overall up 14 points. The microdata was never wasted work — it held the line for years and still corroborates. But the store's agent readiness dated from the day the primary layer arrived. Both layers, seniority respected: that is the whole doctrine in one store.
Related guides and the standing invitation
Companion reading for this topic: How Do You Add JSON-LD Product Markup to a Product Page? · What OpenGraph Product Tags Do Agent Previews Read? · What Is a Machine-Readable Product Feed? · How Many JSON-LD Blocks Should a Page Have?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.
Sources
- HTML Living Standard — Microdata — the WHATWG HTML Living Standard's microdata section — itemscope, itemtype and itemprop as this guide uses them (current as of 2026).
- JSON-LD 1.1 — W3C Recommendation — the W3C Recommendation (2020) defining the JSON-LD syntax the markup in this guide uses.
- Schema.org — Product — the Schema.org vocabulary entry for Product — the type and properties this guide's markup names (current as of 2026).
Frequently asked questions
Which does AXO score higher, microdata or JSON-LD?
JSON-LD, decisively. In the product-feed dimension, JSON-LD product markup earns 40 points to microdata's 25, and the entire structured-data dimension (another 25% of the overall score) evaluates JSON-LD presence, validity, @context, and @type.
If my theme already emits microdata, do I still need JSON-LD?
Yes. Microdata is a corroborating layer without a natural home for full offers semantics, and it earns no structured-data points. Complete JSON-LD is the primary layer agents transact on; keep the microdata as the second layer.
Can microdata replace JSON-LD on a platform where blocks are hard to add?
As a transitional state, partially — agents will extract basics. But you forfeit the structured-data dimension entirely and the offers confidence agents need. Treat it as a bridge while you find a way to emit one canonical block.
Which format drifts more?
Both drift, differently. Hand-maintained JSON-LD drifts from prices; microdata drifts when templates are refactored and itemprops are dropped or misplaced. Generated JSON-LD plus automated checks is the most maintainable combination.
How do I check my microdata?
Search your served product page source for itemscope with a Product itemtype, and confirm itemprop fields (name, price) sit inside that scope. The free AXO audit reports the layer's presence as part of the product-feed dimension.