JSON-LD, short for JavaScript Object Notation for Linked Data, is a format for embedding structured data in a page. It is the format Google explicitly recommends over the alternatives.
JSON-LD is placed in a script block of type application/ld+json, usually in the head. Unlike Microdata and RDFa, which annotate existing HTML with extra attributes, JSON-LD sits separately from the visible markup — which is precisely why it is easier to add, maintain and generate programmatically.
Structured data is what makes rich results possible: review stars, FAQ accordions, product prices, breadcrumbs and event details in the results. Because JSON-LD is decoupled from the HTML, templates can be changed without breaking the markup, which is the usual cause of structured data silently failing.
Use JSON-LD for all structured data, validate it with the Rich Results Test and Schema Markup Validator, and ensure the marked-up values genuinely match what is visible on the page — mismatches are a policy violation. Monitor the structured data reports in Search Console for errors introduced by template changes.
Want to learn more? Explore our SEO Glossary or check out our expert guides on SEO strategies.