Skip to content

JSON-LD

JSON-LD is a format for embedding structured data in a web page as a block of JSON, separate from the visible text. It is a format Google supports.

Last reviewed

JSON-LD, short for JavaScript Object Notation for Linked Data, is a way to write structured data as a block of JSON inside a script tag in the page. The block sits apart from the visible text, which makes it easier to add and maintain than markup woven into the HTML.

A typical block states a type, such as Organization or Product, and a set of properties, such as name, address and price. Google documents all three syntaxes it supports and advises using JSON-LD.

It matters because it is the usual way to give machines clean facts about your business. Keep the block consistent with the visible page: values that disagree with the text, such as a price that differs, make the data unreliable.

Example: a hotel page carries a JSON-LD block of type Hotel with its name, address, check-in time and star rating, matching what the page shows.