JSON-LD (JavaScript Object Notation for Linked Data) is a way of writing facts about a page, such as a product’s price or a business’s address, as a small block of code that machines can read, kept separate from the words people see. It is the format Google recommends for schema markup where your site allows it.
What is JSON-LD? #
JSON is a plain text format for data that most programming languages read. JSON-LD adds a few rules so the data links to shared meanings. The W3C JSON-LD 1.1 specification, a W3C Recommendation published on 16 July 2020, defines it as a JSON-based format to serialise Linked Data. The project site json-ld.org calls it lightweight, easy for humans to read and write, and built on the already successful JSON format.
On a web page, JSON-LD almost always describes things using the schema.org vocabulary: types like Product, LocalBusiness, Article and Event, each with named properties.
What does it look like? #
Here is a short block for one product, placed inside a script tag in the page’s HTML:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Glass Kettle 1.7 Litre",
"sku": "GK-17",
"offers": {
"@type": "Offer",
"price": "39.99",
"priceCurrency": "GBP",
"availability": "https://schema.org/InStock"
}
}
</script>
Visitors never see it. A crawler reads it and learns, without guessing, that this page sells one kettle at £39.99 in pounds sterling, in stock.
What do the @ words mean? #
The W3C specification defines a small set of keywords that start with @. The 4 you meet most:
| Keyword | What it does | Typical value |
|---|---|---|
| @context | Defines the short names used in the block | https://schema.org |
| @type | Sets the type of the thing described | Product, LocalBusiness |
| @id | Gives the thing a unique identifier, usually an address | https://example.co.uk/#shop |
| @graph | Holds several linked things in one block | A list of items |
Why does it matter for search? #
Google’s introduction to structured data names 3 formats: JSON-LD, Microdata and RDFa. It says Google generally recommends JSON-LD if your site’s setup allows it, and that all 3 are equally fine as long as the markup is valid. It describes JSON-LD as notation in a script tag that can sit in the head or the body, and notes that it is not interleaved with the visible text. That separation is the main practical win: you can change the design without breaking the data.
Valid markup makes a page eligible for a rich snippet, such as price and stock on a product or review stars. It does not force one to show. Google’s general structured data guidelines say plainly that even correct markup may never appear in results; Google makes that call.
Why does it matter for AI answers? #
JSON-LD hands over facts in labelled form: this is the price, this is the opening time. That lowers the chance of an assistant misreading a page and producing an AI hallucination about you. Google’s page on AI features asks site owners to make sure their structured data matches the visible text on the page, and states that no extra requirements apply for AI Overviews or AI Mode. Clean, honest JSON-LD helps any machine reader, which is the heart of answer engine optimisation and generative engine optimisation and of being a well-defined entity.
Can JavaScript add it after the page loads? #
Yes, with care. Google’s intro page says it can read JSON-LD that is dynamically injected into the page. Its guide to generating structured data with JavaScript covers Google Tag Manager and custom scripts. It also warns that dynamically generated markup can make Shopping crawls less frequent and less reliable, which matters for fast-changing prices and stock. Other crawlers, including many AI ones, may not run scripts at all; see JavaScript SEO. Put product facts in the HTML your server sends.
Common mistakes #
- Facts readers cannot see. Google’s guidelines say not to mark up content that is not visible to readers of the page.
- Stale prices. The page says £34.99 in a sale; the JSON-LD still says 39.99. Keep your shopping feed in step too.
- Two plugins, two blocks. A theme and a WordPress SEO plugin both output a Product block with different values.
- Broken JSON. One missing comma or a curly quote pasted from a word processor stops the whole block from parsing.
- Vague types. Google asks for the most specific applicable type, so a bakery should use Bakery rather than a generic LocalBusiness.
- Separate blocks that never connect. The same guidelines suggest using @id to show that, say, a video is about the recipe on the same page.
A worked example #
A small bakery in Leeds wants its hours and address read correctly. Its home page carries one block:
{
"@context": "https://schema.org",
"@type": "Bakery",
"@id": "https://example-bakery.co.uk/#bakery",
"name": "Example Bakery",
"telephone": "+44 113 496 0000",
"address": {
"@type": "PostalAddress",
"streetAddress": "1 Example Street",
"addressLocality": "Leeds",
"postalCode": "LS1 1AA",
"addressCountry": "GB"
},
"openingHours": "Tu-Sa 08:00-16:00"
}
Every value also appears in the page footer. When the hours change at Christmas, the owner edits both on the same day. That habit matters more than any clever property.
How to check it #
- List every JSON-LD block, type and property on a page with our Schema Markup Checker. Our guide on how to use the schema checker walks through the results.
- Draft missing blocks with our Schema Markup Generator, then tidy the code with the JSON formatter.
- Pull the facts out of a block in plain words with the structured data facts extractor.
- Check that page, markup and other machine files agree with the AI Consistency Checker.
- For shops, the Product Page Checker reviews product markup alongside the rest of the page.
- Test the address in Google’s Rich Results Test, then watch the reports in Google Search Console. In URSY Pro, the structured data monitor warns you when a block changes or breaks.
Questions #
Does JSON-LD go in the head or the body? #
Either. Google reads both.
Is JSON-LD a ranking factor? #
Google does not describe it as one. It helps Google understand the page and makes rich results possible.
Can I have more than one block on a page? #
Yes. Google reads several items, nested or separate. Link related ones with @id.
Do I need to know how to code? #
Most shop and blog systems add basic blocks for you. You only need to check the output is correct and current.
Related words #
Sources #
- W3C: JSON-LD 1.1, W3C Recommendation 16 July 2020, checked 24 November 2026
- json-ld.org: JSON for Linking Data, checked 24 November 2026
- schema.org: Getting started with schema.org, checked 24 November 2026
- Google Search Central: Introduction to structured data markup in Google Search, checked 24 November 2026
- Google Search Central: General structured data guidelines, checked 24 November 2026
- Google Search Central: Generate structured data with JavaScript, checked 24 November 2026
- Google Search Central: AI features and your website, checked 24 November 2026
Updated 24 November 2026 by URSY.com.
Cite this page: JSON-LD. URSY. Updated 26 November 2026. https://ursy.com/wiki/json-ld/ · Section links
Tools for this
- Livellms.txt Checker + Generatorcheck your llms.txt, or write llms.txt, llms-full.txt and llms.jsonRun the check →
- LiveAI Readiness Checkeris your site ready for ChatGPT, Gemini, Claude? Score + fixesRun the check →
- LiveAI Bot Checkerwhich AI bots your robots.txt lets inRun the check →
- LiveRobots.txt Checker + Generatortest any address against your rules, or write new onesRun the check →
- LiveSchema Markup CheckerRun the check →
- ProWhat AI readsAI reads of llms.txt, .md, .json, images, feedsIn URSY Pro →
- ProAI shopping feedsOpenAI feed, AI catalogue text, JSONL, knowledge graph from your shopIn URSY Pro →