What is JSON‑LD
JSON‑LD is a JSON‑based structured data format developed by the W3C. It describes entities and relationships on the web. In SEO, JSON‑LD is used to embed schema.org markup into a webpage.
Why Google recommends JSON‑LD
- No mixing with HTML – markup does not clutter page tags.
- Easier to maintain – can be generated dynamically (e.g., from a CMS).
- Developer‑friendly – valid JSON is readable and debuggable.
- Supports all major schema.org types for rich results (Product, FAQ, HowTo, Article, etc.).
Example JSON‑LD markup (Organization)
json
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Example Inc",
"url": "https://example.com",
"logo": "https://example.com/logo.png",
"sameAs": [
"https://twitter.com/example",
"https://www.linkedin.com/company/example"
]
}
</script>JSON‑LD is typically placed in
<head> or at the end of <body>. Multiple JSON‑LD scripts on one page are allowed (e.g., separate blocks for Product, BreadcrumbList, and Organization).FAQ
Can I mix JSON‑LD with inline markup?
Yes, Google supports mixed approaches. However, using a single format (JSON‑LD) is recommended for simplicity and reliability.
Are all schema.org types supported in JSON‑LD?
Yes, all schema.org types and properties are fully supported. Some Google rich results even require JSON‑LD.
How do I validate JSON‑LD?
Use Google Rich Results Test, the Schema Markup Validator from schema.org, or Yandex‘s validator (for their search).