JSON-LD, short for JavaScript Object Notation for Linked Data, is a way of putting structured information about a page into the code, separate from the visible text. It sits in a separate script block, usually in the head of the page, and describes in a fixed format what's on the page: a business, a product, an article, an event or a set of frequently asked questions.
JSON-LD is the format Google recommends for structured data. The vocabulary you use in it comes from Schema.org, a shared standard of the major search engines. So JSON-LD is the packaging, and Schema.org the language.
There are other formats too, such as Microdata and RDFa, which you weave directly into the HTML elements. JSON-LD has the advantage of being separate from your markup. You can add or change it without touching the visible page, which makes maintenance easier. In platforms such as Webflow or WordPress, you can often set it up per page type with dynamic fields, so every page automatically gets the right data. For an online store with hundreds of products, that saves a lot of manual work, because price and stock come straight from the product data.
A bakery in Edinburgh wants to tell Google and other systems clearly who it is. In JSON-LD, it describes itself as the type Bakery, with:
On its product pages for made-to-order cakes, it can also use Product markup with price and availability. Important: everything in the JSON-LD must also be genuinely visible or correct on the page itself.
Structured data helps search engines recognise entities and their properties unambiguously. That fits with how a knowledge graph works: as a network of entities and their relationships. To what extent AI assistants such as ChatGPT, Gemini or Perplexity use JSON-LD directly when putting together answers isn't publicly documented. So it's no miracle cure for AI mentions, but it is a way to present your data as unambiguously as possible to every system that reads it.
A technical SEO analysis that checks your structured data tracks down missing, incorrect or conflicting JSON-LD, so you know where to step in first.
Request your free AI visibility plan. An expert analyses your business and contacts you within 1 working day to present your plan in person.