JSON-LD Basics
Introduction to structured data for SEO rich results.
What is JSON-LD?#
JSON-LD (JavaScript Object Notation for Linked Data) is Google's recommended format for implementing Schema.org markup. It helps search engines understand your content and display rich results.
Without Schema
With Rich Results
Why Use Schema Markup?#
Rich Results
Stars, prices, images, and more in search
Better CTR
Rich results get 30%+ more clicks
Voice Search
Better compatibility with assistants
Knowledge Panel
Appear in Google's knowledge graph
Basic Structure#
JSON-LD is embedded in your HTML using a <script> tag:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Joe's Pizza",
"image": "https://example.com/photos/joes-pizza.jpg",
"telephone": "+1-555-123-4567",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main St",
"addressLocality": "Austin",
"addressRegion": "TX",
"postalCode": "78701"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 30.2672,
"longitude": -97.7431
},
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "11:00",
"closes": "22:00"
}
}
</script>Supported Schema Types#
dataclean.to generates JSON-LD for these popular Schema.org types:
How dataclean.to Helps#
We automatically generate valid JSON-LD from your cleaned data:
Upload your data (CSV, Excel, or Google Sheets)
Select a schema template (LocalBusiness, Product, etc.)
Map your columns to schema properties
Export or fetch via API with embedded _schema
// API response includes _schema for each item
{
"data": [
{
"id": "row_123",
"name": "Joe's Pizza",
"phone": "+15551234567",
"_schema": {
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name": "Joe's Pizza",
"telephone": "+15551234567"
}
}
]
}