JSON-LD (JSON for Linking Data) is a lightweight way to add structured data to your web pages. Let's explore why it matters and how it works.
JSON-LD is a format for encoding linked data using JSON. It's designed to be easy to read and write by humans and machines.
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "JSON-LD Explained",
"author": {
"@type": "Organization",
"name": "Data Team"
},
"datePublished": "2025-10-30T00:00:00Z"
}
Search engines use structured data to create rich snippets:
Help machines understand your content's meaning, not just its presentation.
Unlike microdata, JSON-LD lives in a <script> tag, keeping your HTML clean:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "My Article"
}
</script>
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "My Blog Post",
"author": {
"@type": "Person",
"name": "John Doe"
},
"datePublished": "2025-10-30",
"image": "https://example.com/image.jpg"
}
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Jane Smith",
"jobTitle": "Software Engineer",
"url": "https://janesmith.com",
"sameAs": [
"https://twitter.com/janesmith",
"https://github.com/janesmith"
]
}
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Tens City",
"url": "https://tens.city",
"logo": "https://tens.city/logo.png"
}
{
"@context": "https://schema.org",
"@type": "Recipe",
"name": "Chocolate Chip Cookies",
"recipeIngredient": [
"2 cups flour",
"1 cup sugar",
"1 cup chocolate chips"
],
"recipeInstructions": "Mix and bake at 350°F for 12 minutes"
}
Every blog post in Tens City automatically generates JSON-LD from its frontmatter:
Markdown Frontmatter:
---
title: My Post
author:
name: John Doe
type: Person
datePublished: 2025-11-03T00:00:00Z
tags:
- example
---
Generated JSON-LD:
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "My Post",
"author": {
"@type": "Person",
"name": "John Doe"
},
"datePublished": "2025-11-03T00:00:00Z",
"keywords": ["example"]
}
Use these tools to validate your structured data:
JSON-LD is becoming the standard for structured data on the web:
JSON-LD is a simple, powerful way to make your content more discoverable and useful. Tens City automatically generates it for you, but understanding it helps you create better content.
Start thinking semantically, and the machines will thank you! 🤖