RealComposer
Data & Payload Slimming

JSON-LD

Direct Definition

JSON-LD embeds linked data in JSON using an @context document that maps keys to IRIs from shared vocabularies. Search engines and integrators consume JSON-LD for rich snippets, while APIs can reuse the same context to align field meanings across services without bespoke field dictionaries in every response.

Technical Architecture & Deep-Dive

A Product object might declare @context pointing to schema.org and use schema.org/name for titles. Clients that understand the context resolve aliases consistently even when local keys differ.

Public SEO pages inject compact JSON-LD scripts in HTML, but headless APIs may attach context blocks to canonical JSON resources. Edge transformers can strip marketing-only JSON-LD from API payloads meant for mobile while preserving slim business fields clients actually render.

Key Architectural Benefits

Connects JSON fields to well-known public vocabularies.
Improves SEO structured data and integrator clarity.
Separates semantic mapping from raw property names.

Minimal JSON-LD

json
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Edge plan",
  "sku": "edge-pro"
}
REALCOMPOSER EDGE WORKSPACE

Implement JSON-LD at the Edge

Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.

START BUILDING FREE

Frequently Asked Questions

Q:Is JSON-LD only for HTML script tags?

HTML embedding is common for SEO, but JSON-LD is valid in API responses when clients understand linked data contexts.