AEO, GEO and AI search

JSON-LD

JSON-LD (JavaScript Object Notation for Linked Data) is the format Google recommends for adding structured data to a page, usually inside a script tag in the HTML.

There are three ways to add Schema.org markup: microdata, RDFa and JSON-LD. JSON-LD keeps the data in a separate block of code instead of weaving it into your HTML tags, which makes it far easier to write, read and maintain.

In more detail

A JSON-LD block starts with @context set to schema.org and a @type such as Organization or Article, followed by properties. Several entities can live in one @graph and reference each other with @id values, which is how a page can state that its article was published by the same organisation described on the home page.

Why it matters

Because JSON-LD sits apart from the layout, developers can generate it from the same data that builds the page, keeping it accurate. That reliability is what search engines and AI tools need to trust structured data.

Example

A blog template outputs a JSON-LD block on every post with the headline, author, publish date and publisher. When an editor updates a post, the dateModified field updates automatically from the CMS, with no manual edits.

FAQ

JSON-LD: quick answers

Where should JSON-LD go on a page?

Google reads it in the head or the body. Most sites put it in the head so it is easy to find and maintain.

Can I have more than one JSON-LD block?

Yes. Multiple blocks are fine, though a single @graph that links entities with @id values is tidier.

Free audit

Find out where you stand in search and AI answers.

Get a free audit of your SEO, AI visibility and email setup. We send a short, specific report with the three changes that would move the needle most.