JSON-LD – Add Structured Data with schema.org for SEO
JSON-LD (JavaScript Object Notation for Linked Data) is a data format used to add structured data to web pages. It is embedded in a <script> tag within the <head> or <body> and is the preferred format recommended by Google for implementing schema.org markup.
Unlike Microdata or RDFa, JSON-LD allows structured data to be separated from the HTML content, making it cleaner, easier to manage, and developer-friendly.
Key characteristics of JSON-LD:
- Based on JSON – readable and easy to implement
- Enables semantic SEO and rich results in SERPs
- Supported by Google, Bing, LinkedIn, Pinterest, and others
- Works with schema.org to define the type of content
Common use cases:
- Product details (price, availability, rating)
- FAQs and HowTo guides
- Articles with author and publication date
- Business and local information
- Events, recipes, job postings, and more
Example (FAQ in JSON-LD):
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is JSON-LD?",
"acceptedAnswer": {
"@type": "Answer",
"text": "JSON-LD is a structured data format that marks up content semantically – recommended by Google to enable rich results in search."
}
}
]
}
</script>
Best Practices:
- Validate your markup with Google’s Rich Results Test or schema.org tools
- Avoid duplicate properties and ensure data consistency
- Use separate JSON-LD blocks if combining multiple schema types (e.g. Article + FAQ)
Learn more about our technical SEO and on-page optimization services here.