structured-data
JSON-LD
Also known as: JavaScript Object Notation for Linked Data
A lightweight data format that makes it easy to express linked data using JSON syntax, commonly used for adding structured data to web pages.
What is JSON-LD?
JSON-LD (JavaScript Object Notation for Linked Data) is a method of encoding linked data using JSON, a lightweight data interchange format. It provides a way to express structured data that can be embedded in HTML documents, making web content more machine-readable.
JSON-LD is designed to be easy for humans to read and write while also being easy for machines to parse and generate. It's particularly valuable for adding semantic metadata to web pages, helping search engines and other AI systems better understand the content and context of the information presented.
JSON-LD is designed to be easy for humans to read and write while also being easy for machines to parse and generate. It's particularly valuable for adding semantic metadata to web pages, helping search engines and other AI systems better understand the content and context of the information presented.
Why It Matters
JSON-LD is crucial for modern web content optimization because:
- It's the recommended format by Google for implementing structured data
- It helps search engines understand the content and context of web pages
- It enables rich results and enhanced features in search engine results pages
- It separates the structured data from the presentation layer, making maintenance easier
- It supports the semantic web by creating linked data connections
- It improves content interpretation by AI systems and large language models
- It facilitates more accurate information extraction and knowledge graph integration
Use Cases
Rich Search Results
Enabling enhanced listings in search results with additional information
Knowledge Graph Integration
Helping content be properly represented in knowledge graphs
Content Classification
Providing explicit type information about content
Entity Relationship Mapping
Defining connections between different entities mentioned in content
Optimization Techniques
To implement JSON-LD effectively:
- Place JSON-LD in the section of HTML documents
- Use the appropriate Schema.org types and properties for your content
- Include all required properties for each schema type
- Validate your JSON-LD using Google's Structured Data Testing Tool or Schema.org Validator
- Implement nested schemas to represent complex relationships
- Keep structured data consistent with visible page content
- Update JSON-LD when page content changes
- Use specific types rather than generic ones when possible
Metrics
Key metrics for evaluating JSON-LD implementation include:
- Structured data validation success rate
- Rich result eligibility and appearance rate
- Knowledge panel triggering frequency
- Semantic search visibility improvements
- Entity recognition accuracy in search analytics
- Click-through rate improvements from enhanced search listings
How LLMs Interpret This
LLMs interpret JSON-LD data by:
When content includes well-structured JSON-LD, LLMs can more accurately represent and reference it, leading to better information retrieval and more accurate responses.
- Extracting explicit entity relationships and attributes
- Understanding content type and purpose more precisely
- Recognizing standardized properties and their meanings
- Mapping content to known entities in their knowledge base
- Identifying the hierarchical structure of information
When content includes well-structured JSON-LD, LLMs can more accurately represent and reference it, leading to better information retrieval and more accurate responses.
Code ExampleTypeScript
1<!-- Example of JSON-LD for a product page -->2<script type="application/ld+json">3{4 "@context": "https://schema.org",5 "@type": "Product",6 "name": "Executive Leather Office Chair",7 "image": "https://example.com/chair-images/executive-leather.jpg",8 "description": "A premium leather executive chair with ergonomic design and adjustable features.",9 "brand": {10 "@type": "Brand",11 "name": "ErgoComfort"12 },13 "offers": {14 "@type": "Offer",15 "url": "https://example.com/chair/executive-leather",16 "priceCurrency": "USD",17 "price": "399.99",18 "availability": "https://schema.org/InStock",19 "seller": {20 "@type": "Organization",21 "name": "Office Furniture Emporium"22 }23 },24 "aggregateRating": {25 "@type": "AggregateRating",26 "ratingValue": "4.8",27 "reviewCount": "127"28 },29 "material": "Genuine Leather",30 "color": "Black"31}32</script>Export Structured Data
schema.json
{
"@context": "https://schema.org",
"@type": "DefinedTerm",
"name": "JSON-LD",
"alternateName": [
"JavaScript Object Notation for Linked Data"
],
"description": "A lightweight data format that makes it easy to express linked data using JSON syntax, commonly used for adding structured data to web pages.",
"inDefinedTermSet": {
"@type": "DefinedTermSet",
"name": "AI Optimization Glossary",
"url": "https://geordy.ai/glossary"
},
"url": "https://geordy.ai/glossary/structured-data/json-ld"
}Details
- Category
- structured-data
- Type
- technique
- Level
- developer
- GEO Readiness
- Structured for AI
Keywords
structured datasemantic markuplinked dataschema implementationrich results