Skip to main content
SlapMyWeb
Technical SEO

JSON-LD

Google's preferred format for adding structured data to web pages via a script tag.

JSON-LD is the format Google recommends for structured data: a block of JSON in a script tag that describes the page in schema.org vocabulary. It is preferred over inline microdata because it sits apart from the markup, so it can be added or changed without touching the layout the user sees.

Definition

JSON-LD (JavaScript Object Notation for Linked Data) is Google's recommended format for implementing structured data. It is embedded in a <script type="application/ld+json"> tag in the HTML, separate from the visible content.

JSON-LD is preferred over Microdata and RDFa because it is easier to implement, maintain, and does not require modifying HTML markup.

Why It Matters

JSON-LD is the cleanest way to add structured data. It does not clutter your HTML, can be dynamically generated, and is easier for developers to maintain. Google explicitly recommends JSON-LD over other formats.

Example

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "SlapMyWeb",
  "url": "https://slapmyweb.com"
}
</script>

Know the term.
Check your own site.

A free audit tells you whether this is currently costing you score points — and exactly what to change.

Run a free audit
Free foreverNo signupResults in 30s