Home
Next.js
Next.js: Schema JSON-LD
Daniel Nguyen
Daniel Nguyen
September 16, 2026
1 min

1. What is JSON-LD?

JSON-LD stands for JSON for Linked Data. It is a format for adding structured data to a webpage so search engines and other systems can better understand the content.

For example, a normal HTML page might contain:

<h1>Monstera Thai Constellation</h1>
<p>Beautiful variegated plant.</p>

To a user, this is obviously a product. With JSON-LD, we can explicitly describe it as a Product:

{
"@context": "https://schema.org",
"@type": "Product",
"name": "Monstera Thai Constellation",
"description": "Beautiful variegated plant."
}

When to use: Use JSON-LD when you want to provide structured information about entities such as products, organizations, articles, events, recipes, and more.

2. @context

@context tells the parser which vocabulary you’re using. Most websites use Schema.org:

{
"@context": "https://schema.org"
}

Think of it as:

@context
↓
"What vocabulary do these properties belong to?"

3. @type

@type tells search engines what the entity is.

{
"@context": "https://schema.org",
"@type": "Product"
}

This means:

This data describes a Product.

Common types include:

Product
Organization
WebSite
Article
Person
Event
Recipe
Book
BreadcrumbList

For example:

{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Green Garden"
}

4. Properties

After defining the type, we provide information about that entity.

{
"@context": "https://schema.org",
"@type": "Product",
"name": "Monstera Thai Constellation",
"description": "A beautiful variegated Monstera.",
"image": "https://example.com/monstera.jpg"
}

Here:

@type → Product
name → Product name
description → Product description
image → Product image

Each Schema.org type has its own supported properties.

5. Validate your JSON-LD

After adding JSON-LD, check it with the Schema Markup Validator. Paste your page URL or the JSON-LD snippet, and it shows the detected types, their properties, and any errors or warnings.


Tags

#NextJS

Share

Daniel Nguyen

Daniel Nguyen

Frontend Developer

Frontend developer specializing in React, Next.js, and JavaScript. Writing practical guides on modern web development at Dev98.

Expertise

React
Next.js
JavaScript
TypeScript
Python

Social Media

githublinkedinyoutubewebsite

Related Posts

Next.js
Supabase: Clients in Next.js
October 30, 2026
2 min
Dev98

Dev98

React · Next.js · Web development