JSON-LD lives in a <script type="application/ld+json"> block, usually in the <head>. It does not change what the visitor sees. The current version is JSON-LD 1.1, a W3C Recommendation since 2020.
Why it matters
Google, Bing and other engines read it to understand entities and to qualify pages for rich results. Because it is separate from the visible HTML, developers can generate it from the same data that renders the page, which keeps it accurate.
Example with @graph and @id
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#org",
"name": "Example Co",
"url": "https://example.com/"
},
{
"@type": "Article",
"@id": "https://example.com/blog/post/#article",
"headline": "How we test rendering",
"publisher": { "@id": "https://example.com/#org" }
}
]
}
</script>
The @id values let one node point to another, so the article and the organization form one graph instead of two unrelated blobs.
Common mistakes
- Injecting JSON-LD with client-side JavaScript only. Google can process it, but crawlers that skip JavaScript will miss it.
- Invalid JSON: a trailing comma breaks the whole block.
- Using a different
@idfor the same organization on every page. - Values that disagree with the visible page.
How Renderly handles it
We generate JSON-LD at build time from the same content source as the page. View source on this page to see the graph. More in schema markup for AI answers.