Esc
  • Jump to
  • The board
  • All launchesSort and filter by week or category
  • Open statsEvery number, in public
  • Maker storiesApps that stopped hiding
  • Submit a launch
  • AICategory
  • AnalyticsCategory
  • API & BackendCategory
  • Audio & VoiceCategory
  • AutomationCategory
  • CommunityCategory
↑↓ to move↵ to openPress / anywhere
Sign in

What is JSON-LD?

A W3C-standardized JSON format for serializing Linked Data that lets websites declare entities and relationships inside an HTML script tag without changing visible markup.

Updated · SEO & AI Search

Plain definition

Definition of JSON-LD

A W3C-standardized JSON format for serializing Linked Data that lets websites declare entities and relationships inside an HTML script tag without changing visible markup.

Formula / syntax<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","@id":"https://example.com/#org"}</script>

Worked example

Standardized as W3C Recommendation JSON-LD 1.1 (JSON-based Serialization for Linked Data), JSON-LD extends ordinary JSON objects with reserved keywords such as @context to bind keys to shared vocabularies, @type to classify an entity, @id to assign a stable URI identifier, and @graph to connect multiple entities in one block.

Consider a made-up design kit called GridSnap at https://gridsnap.example. Its marketing page renders a hero section, pricing cards, and a founder bio using Tailwind CSS components. Instead of scattering Microdata attributes like itemscope and itemprop across nested div tags that break whenever a designer refactors the layout, GridSnap places one <script type="application/ld+json"> block in its document head.

Inside that block, @context points to https://schema.org and @graph links an Organization node (@id: https://gridsnap.example/#org) to a SoftwareApplication node referencing that publisher by @id. Google's Intro to Structured Data guide explicitly recommends JSON-LD for this exact reason: developers can generate it straight from TypeScript objects without coupling SEO metadata to DOM structure.

Why it matters when you launch

On a fast-moving v1 codebase, your landing page layout changes almost weekly. If you embed metadata using inline HTML Microdata or RDFa attributes, every component refactor risks breaking your structured data silently.

JSON-LD isolates machine-readable entity data into a clean, testable JSON payload that you can type-check in TypeScript, serialize safely (escaping < characters to avoid script-tag injection), and connect cleanly across pages using canonical @id URLs. Before shipping a launch update, run your rendered HTML through Google's Rich Results Test and the Schema Markup Validator so syntax errors or mismatched dates never block search crawlers.

Common mistakes

  • Rendering unescaped user strings containing </script> or raw quotes inside an inline JSON-LD script block, opening cross-site scripting bugs or invalid JSON.
  • Using Microdata or RDFa attributes inline across React or HTML templates when Google explicitly recommends JSON-LD for maintainability.
  • Duplicating disconnected JSON-LD snippets from three plugins instead of connecting Organization, WebSite, and Product nodes cleanly via @id references.
  • Leaving trailing commas or JavaScript comments inside application/ld+json blocks, which breaks strict JSON parsing.

Tools and guides that use it

Official sources

Pritam Ghosh runs Hauntboard and maintains this glossary.

Published · Updated

Building something real? Launch it in public.

A person reviews every launch on Hauntboard, and every view and visit it sends your site is published on your launch page. Free to submit.

Launch free →

On the board

All →

Still hiding your app?

Put it on the board. Reviewed by a person, free to launch.

Launch free
Submit a launch