What is JSON-LD?
Also known as JavaScript Object Notation for Linked Data, JSON-LD structured data
Definition
JSON-LD is a way of writing structured data as a small block of code inside a web page. It describes the page's content using schema.org terms, and it is the format Google recommends for structured data.
Key points
- JSON-LD adds structured data as one self-contained script block on a page.
- Google recommends it because it is the easiest format to add and maintain.
- Blocks that use stable IDs and point to each other build a connected picture of your business.
What does it mean in practice?
A physiotherapy clinic wants search engines to know its name, address, phone number and opening hours. With JSON-LD, it adds one script block to the page's HTML. Inside, it states that the page is about a LocalBusiness, then lists each fact as a labelled value. Visitors never see it, but crawlers read it.
Because it sits in its own block, JSON-LD is easier to add and maintain than older formats that wrap tags around visible text. Google says it recommends JSON-LD where your setup allows it. The format itself is a W3C standard.
Why does it matter for AI search?
JSON-LD is the usual way to publish schema markup, so it is how most sites tell machines who they are. Blocks that use stable @id values and point to each other build a small connected graph of your business. An Article can point to its author and its publisher, for example.
A few habits help. Keep the facts identical to what is on the page. Avoid adding types you cannot back up. Test changes with Google's Rich Results Test.
The schema generator in Axiom GEO builds copy-paste JSON-LD with no AI and no credits. Our guide to schema markup for AI search covers what to include.
Related terms
These terms connect to JSON-LD.
- Schema markup, the vocabulary JSON-LD is written in.
- Knowledge graph, what linked JSON-LD blocks build.
- Entity, the thing each block describes.
Common questions
Is JSON-LD the same as schema markup?
Where should JSON-LD go on a page?
Related reading
Schema markup generator
This schema markup generator builds copy-paste JSON-LD for any page, only for the types it is missing. Covers LocalBusiness, FAQPage, Article and more.
Schema markup for AI search
Schema markup for AI search, what it does and does not do for ChatGPT, Gemini and AI Overviews, with JSON-LD examples for Organization and FAQPage.
Schema markup
A plain definition of schema markup, how it describes a page to machines in plain terms, and what it can and cannot do for AI search results.
Knowledge graph
A plain definition of a knowledge graph, how Google uses one, and how your website can publish its own connected entity graph.
AI crawler
A plain definition of AI crawlers such as GPTBot and OAI-SearchBot, what each type does, and why blocking one can cost you visibility.
AI Mode
A plain definition of Google AI Mode, how it uses query fan-out, and how to see your AI Mode impressions in Search Console.