JSON-LD schema markup embeds standardized Schema.org metadata inside a script tag so Google can identify entities, authors, and publication dates without parsing your HTML layout. Keep your Organization and Article properties aligned with visible page content, escape angle brackets in frameworks like Next.js, and validate before deployment.
Why Google Recommends JSON-LD Over Microdata and RDFa
Adding schema markup gives search engines explicit clues about what a page represents. Crawlers no longer have to guess from HTML layout alone. Google's structured data introduction explains that structured data uses Schema.org vocabulary to label entities like articles, organizations, and products.
Google Search supports three formats: JSON-LD, Microdata, and RDFa. All three are valid when implemented properly. Still, Google recommends JSON-LD because it is easiest to build and maintain at scale.
Unlike Microdata and RDFa, JSON-LD does not mix attributes like `itemscope` or `itemprop` into visible DOM elements. You place a `<script type="application/ld+json">` block inside `<head>` or `<body>`. Nested objects stay easy to read and refactor.
Google can also read JSON-LD dynamically injected via JavaScript. On custom sites without WordPress plugins, hand-editable JSON-LD keeps markup decoupled from CSS changes. See our on-page SEO checklist to align structured data with titles and canonicals.
Organization Schema Markup: Name, Logo, URL, and sameAs
Adding `Organization` schema markup to your homepage or About page helps Google disambiguate your brand and connect administrative details across Search and knowledge panels. Per Google's Organization structured data guide, there are no strictly required properties.
Instead, Google recommends supplying accurate properties that reflect real-world and online presence. You do not need to repeat full `Organization` markup on every single blog post.
```json { "@context": "https://schema.org", "@type": "Organization", "name": "Acme Tools", "url": "https://example.com", "logo": "https://example.com/logo.png", "sameAs": ["https://github.com/acme", "https://x.com/acme"], "email": "hello@example.com" } ```
Follow Google's specific guidelines when filling these fields:
- Use a specific subtype: Choose `OnlineStore` or a `LocalBusiness` subtype when it fits better than generic `Organization`.
- Match your site name: Keep `name` and `alternateName` consistent with the site name across your pages.
- Check logo dimensions: Google requires logo images to be at least 112x112px, crawlable, indexable, and legible on a white background.
- Link verified profiles: Use `sameAs` URLs for official social profiles or registries so Google links your entity confidently.
Google also recognizes `Organization` fields like `vatID`, `iso6523Code`, and `contactPoint`, while `OnlineStore` adds shipping and return policy properties. Keep every detail honest and verifiable.
Article and BlogPosting Schema: Headline, Author, and ISO Dates
For blog posts, guides, and news updates, Google's Article structured data guide supports `Article`, `NewsArticle`, and `BlogPosting`. Structured data is not required to appear in Top Stories. However, it clarifies your headline, representative image, author, and timestamps.
```json { "@context": "https://schema.org", "@type": "BlogPosting", "headline": "How We Audited Our Static Blog", "image": ["https://example.com/cover-16x9.png"], "datePublished": "2026-11-10T09:00:00+00:00", "dateModified": "2026-11-18T14:30:00+00:00", "author": { "@type": "Person", "name": "Maya Lin", "url": "https://example.com/authors/maya-lin" } } ```
Google highlights specific rules for dates, images, and authors:
- ISO 8601 dates with timezones: Format `datePublished` and `dateModified` in ISO 8601. Include a timezone offset so Googlebot does not guess.
- High-resolution images: Supply crawlable images of at least 50,000 pixels (`width × height`). Google recommends 16:9, 4:3, and 1:1 versions.
- Clean author names: Put only the author's name inside `author.name`. Avoid prefixes like `Posted by`, job titles, or publisher names.
- Accurate author types: Use `Person` or `Organization`—never `Thing`—and include `url` or `sameAs` to disambiguate authors.
If multiple people wrote a post, pass an array of separate `author` objects. Never merge two names into one string.
Keeping Structured Data Aligned With Visible Page Content
Syntactically valid JSON can still fail Google's quality bar if it contradicts what readers actually see in the browser. Google's general structured data guidelines warn that deceptive, misleading, or hidden markup can trigger a manual action.
A structured data manual action strips rich-result eligibility from affected pages, though it does not affect standard web search rankings. Automated syntax tools cannot catch content mismatches, so you must verify visible parity yourself.
| JSON-LD Field | Must Match Visible HTML | Common Indie Mistake | | :--- | :--- | :--- | | `headline` | Main `<h1>` article title | Putting keyword-stuffed alternate text in JSON-LD | | `author.name` | Visible byline name | Listing a fake persona or merging publisher text | | `datePublished` | Visible publish date | Changing dates daily to look fresh | | `dateModified` | Visible updated date | Bumping timestamps on automated deploys | | `image` | Representative article image | Linking a generic favicon or sitewide logo |
Also watch out for schema spam traps. Never add fake `AggregateRating` stars or editorial reviews unless genuine user-visible reviews exist on that exact URL.
Keep structured data on the canonical and any duplicate URLs where that content lives, and never block those pages with `noindex` or `robots.txt`. For search measurement context, see our AI Overviews and GEO vs. SEO guide.
Adding JSON-LD Cleanly in Next.js, Static Sites, and CMS Templates
Indie developers often ship structured data from React components, Astro layouts, or Markdown frontmatter. Each setup needs safe serialization so post titles with quotes or angle brackets never break HTML.
The official Next.js JSON-LD guide recommends rendering a native `<script type="application/ld+json">` tag inside a Server Component (`layout.tsx` or `page.tsx`). Avoid `next/script`, which is built for executable JavaScript rather than passive data.
```tsx export default function PostPage({ post }) { const jsonLd = { '@context': 'https://schema.org', '@type': 'BlogPosting', headline: post.title, datePublished: post.publishedAt, } return ( <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c'), }} /> ) } ```
Replacing `<` with `\u003c` prevents XSS injection if a CMS title contains `</script>`. For TypeScript safety, `schema-dts` gives you compile-time Schema.org type checking.
In JavaScript-based static site generators like Astro or Eleventy, build the JSON object from frontmatter fields (`title`, `pubDate`, `updatedDate`, `author`). Serialize it with `JSON.stringify` and the same `<` escape, or use Hugo's `jsonify` filter in Go templates. That single source of truth keeps HTML bylines and JSON-LD dates identical.
If you run a hosted CMS where you cannot edit raw HTML directly, use its built-in structured data settings or inject one head partial from your CMS template fields. Review our Next.js SEO audit guide and Markdown blog SEO guide for full framework checks.
Validating Schema Markup Before and After Deployment
Never ship a new JSON-LD template without validating both the syntax and the live rendered HTML. Small typos like trailing commas or unescaped quotes silently invalidate an entire script block.
Start locally before committing code:
- Draft clean blocks: Build your starter `Article` or `Organization` snippet in SearchBop's Schema Markup Generator, which escapes angle brackets safely in your browser.
- Inspect raw HTML: Paste your built HTML output into SearchBop's HTML SEO Checker to confirm valid JSON-LD parsing alongside canonical tags and meta titles.
- Check Schema.org syntax: Test snippets or live URLs in the Schema Markup Validator to catch type or property errors across general Schema.org vocabularies.
- Test Google eligibility: Run the Google Rich Results Test to verify critical errors and warnings for Google-supported features.
After deployment, open Google Search Console's URL Inspection tool to confirm Googlebot can fetch the page without `robots.txt` or `noindex` blocks. Then monitor the Rich result status reports and Manual Actions report over the following days as Google recrawls your updated URLs.
Frequently asked questions
Does schema markup directly boost Google Search rankings?
No. Google states that structured data does not directly improve standard web search rankings. Instead, valid markup helps Google understand your page entities and can unlock richer search appearances such as enhanced titles, dates, and images.
Should I use Article, NewsArticle, or BlogPosting for a blog post?
Google supports all three types—Article, NewsArticle, and BlogPosting—under the same Article structured data guidelines. For an indie blog, guide, or changelog post, BlogPosting is the most specific Schema.org type, while Article works well as a clean default.
Where should I put Organization schema markup on my site?
Google recommends placing Organization structured data on your homepage or a primary page that describes your company, such as an About Us page. You do not need to repeat full Organization details on every individual article page.
Can Google read JSON-LD injected by JavaScript or Next.js?
Yes. Google Search can read JSON-LD injected by JavaScript. Still, server-rendering a native script tag in Next.js layout or page components avoids delays and lets raw HTML checkers read it right away.
Why didn't my rich results appear after passing the Rich Results Test?
Passing validation makes a page eligible for rich results, not guaranteed to display them. Google decides per query based on search history, location, device, and quality guidelines, and it may still take several days for Googlebot to recrawl deployed changes.
Generate Clean JSON-LD and Verify Your Raw HTML
Create ready-to-paste Article and Organization snippets in SearchBop's Schema Markup Generator, then inspect your rendered output with the HTML SEO Checker before deploying. When you want ongoing technical audits and ASO workflows without recurring subscriptions, try SearchBop—a desktop SEO and App Store Optimization assistant with free calculators.
Sources: Google Search Central — Introduction to Structured Data Markup, Google Search Central — Organization Schema Markup, Google Search Central — Article Schema Markup, Google Search Central — General Structured Data Guidelines, Next.js Documentation — How to Implement JSON-LD, Schema.org — Schema Markup Validator, Google Search — Rich Results Test, SearchBop — Schema Markup Generator, SearchBop — HTML SEO Checker
JSON-LD Schema Markup Guide: Article, Organization & Rich Results
JSON-LD schema markup embeds standardized Schema.org metadata inside a script tag so Google can identify entities, authors, and publication dates without parsing your HTML layout. Keep your Organization and Article properties aligned with visible page content, escape angle brackets in frameworks like Next.js, and validate before deployment.
Why Google Recommends JSON-LD Over Microdata and RDFa
Adding schema markup gives search engines explicit clues about what a page represents. Crawlers no longer have to guess from HTML layout alone. Google's structured data introduction explains that structured data uses Schema.org vocabulary to label entities like articles, organizations, and products.
Google Search supports three formats: JSON-LD, Microdata, and RDFa. All three are valid when implemented properly. Still, Google recommends JSON-LD because it is easiest to build and maintain at scale.
Unlike Microdata and RDFa, JSON-LD does not mix attributes like `itemscope` or `itemprop` into visible DOM elements. You place a `<script type="application/ld+json">` block inside `<head>` or `<body>`. Nested objects stay easy to read and refactor.
Google can also read JSON-LD dynamically injected via JavaScript. On custom sites without WordPress plugins, hand-editable JSON-LD keeps markup decoupled from CSS changes. See our on-page SEO checklist to align structured data with titles and canonicals.
Organization Schema Markup: Name, Logo, URL, and sameAs
Adding `Organization` schema markup to your homepage or About page helps Google disambiguate your brand and connect administrative details across Search and knowledge panels. Per Google's Organization structured data guide, there are no strictly required properties.
Instead, Google recommends supplying accurate properties that reflect real-world and online presence. You do not need to repeat full `Organization` markup on every single blog post.
```json { "@context": "https://schema.org", "@type": "Organization", "name": "Acme Tools", "url": "https://example.com", "logo": "https://example.com/logo.png", "sameAs": ["https://github.com/acme", "https://x.com/acme"], "email": "hello@example.com" } ```
Follow Google's specific guidelines when filling these fields:
- Use a specific subtype: Choose `OnlineStore` or a `LocalBusiness` subtype when it fits better than generic `Organization`.
- Match your site name: Keep `name` and `alternateName` consistent with the site name across your pages.
- Check logo dimensions: Google requires logo images to be at least 112x112px, crawlable, indexable, and legible on a white background.
- Link verified profiles: Use `sameAs` URLs for official social profiles or registries so Google links your entity confidently.
Google also recognizes `Organization` fields like `vatID`, `iso6523Code`, and `contactPoint`, while `OnlineStore` adds shipping and return policy properties. Keep every detail honest and verifiable.
Article and BlogPosting Schema: Headline, Author, and ISO Dates
For blog posts, guides, and news updates, Google's Article structured data guide supports `Article`, `NewsArticle`, and `BlogPosting`. Structured data is not required to appear in Top Stories. However, it clarifies your headline, representative image, author, and timestamps.
```json { "@context": "https://schema.org", "@type": "BlogPosting", "headline": "How We Audited Our Static Blog", "image": ["https://example.com/cover-16x9.png"], "datePublished": "2026-11-10T09:00:00+00:00", "dateModified": "2026-11-18T14:30:00+00:00", "author": { "@type": "Person", "name": "Maya Lin", "url": "https://example.com/authors/maya-lin" } } ```
Google highlights specific rules for dates, images, and authors:
- ISO 8601 dates with timezones: Format `datePublished` and `dateModified` in ISO 8601. Include a timezone offset so Googlebot does not guess.
- High-resolution images: Supply crawlable images of at least 50,000 pixels (`width × height`). Google recommends 16:9, 4:3, and 1:1 versions.
- Clean author names: Put only the author's name inside `author.name`. Avoid prefixes like `Posted by`, job titles, or publisher names.
- Accurate author types: Use `Person` or `Organization`—never `Thing`—and include `url` or `sameAs` to disambiguate authors.
If multiple people wrote a post, pass an array of separate `author` objects. Never merge two names into one string.
Keeping Structured Data Aligned With Visible Page Content
Syntactically valid JSON can still fail Google's quality bar if it contradicts what readers actually see in the browser. Google's general structured data guidelines warn that deceptive, misleading, or hidden markup can trigger a manual action.
A structured data manual action strips rich-result eligibility from affected pages, though it does not affect standard web search rankings. Automated syntax tools cannot catch content mismatches, so you must verify visible parity yourself.
| JSON-LD Field | Must Match Visible HTML | Common Indie Mistake | | :--- | :--- | :--- | | `headline` | Main `<h1>` article title | Putting keyword-stuffed alternate text in JSON-LD | | `author.name` | Visible byline name | Listing a fake persona or merging publisher text | | `datePublished` | Visible publish date | Changing dates daily to look fresh | | `dateModified` | Visible updated date | Bumping timestamps on automated deploys | | `image` | Representative article image | Linking a generic favicon or sitewide logo |
Also watch out for schema spam traps. Never add fake `AggregateRating` stars or editorial reviews unless genuine user-visible reviews exist on that exact URL.
Keep structured data on the canonical and any duplicate URLs where that content lives, and never block those pages with `noindex` or `robots.txt`. For search measurement context, see our AI Overviews and GEO vs. SEO guide.
Adding JSON-LD Cleanly in Next.js, Static Sites, and CMS Templates
Indie developers often ship structured data from React components, Astro layouts, or Markdown frontmatter. Each setup needs safe serialization so post titles with quotes or angle brackets never break HTML.
The official Next.js JSON-LD guide recommends rendering a native `<script type="application/ld+json">` tag inside a Server Component (`layout.tsx` or `page.tsx`). Avoid `next/script`, which is built for executable JavaScript rather than passive data.
```tsx export default function PostPage({ post }) { const jsonLd = { '@context': 'https://schema.org', '@type': 'BlogPosting', headline: post.title, datePublished: post.publishedAt, } return ( <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd).replace(/</g, '\\u003c'), }} /> ) } ```
Replacing `<` with `\u003c` prevents XSS injection if a CMS title contains `</script>`. For TypeScript safety, `schema-dts` gives you compile-time Schema.org type checking.
In JavaScript-based static site generators like Astro or Eleventy, build the JSON object from frontmatter fields (`title`, `pubDate`, `updatedDate`, `author`). Serialize it with `JSON.stringify` and the same `<` escape, or use Hugo's `jsonify` filter in Go templates. That single source of truth keeps HTML bylines and JSON-LD dates identical.
If you run a hosted CMS where you cannot edit raw HTML directly, use its built-in structured data settings or inject one head partial from your CMS template fields. Review our Next.js SEO audit guide and Markdown blog SEO guide for full framework checks.
Validating Schema Markup Before and After Deployment
Never ship a new JSON-LD template without validating both the syntax and the live rendered HTML. Small typos like trailing commas or unescaped quotes silently invalidate an entire script block.
Start locally before committing code:
- Draft clean blocks: Build your starter `Article` or `Organization` snippet in SearchBop's Schema Markup Generator, which escapes angle brackets safely in your browser.
- Inspect raw HTML: Paste your built HTML output into SearchBop's HTML SEO Checker to confirm valid JSON-LD parsing alongside canonical tags and meta titles.
- Check Schema.org syntax: Test snippets or live URLs in the Schema Markup Validator to catch type or property errors across general Schema.org vocabularies.
- Test Google eligibility: Run the Google Rich Results Test to verify critical errors and warnings for Google-supported features.
After deployment, open Google Search Console's URL Inspection tool to confirm Googlebot can fetch the page without `robots.txt` or `noindex` blocks. Then monitor the Rich result status reports and Manual Actions report over the following days as Google recrawls your updated URLs.
Frequently asked questions
Does schema markup directly boost Google Search rankings?
No. Google states that structured data does not directly improve standard web search rankings. Instead, valid markup helps Google understand your page entities and can unlock richer search appearances such as enhanced titles, dates, and images.
Should I use Article, NewsArticle, or BlogPosting for a blog post?
Google supports all three types—Article, NewsArticle, and BlogPosting—under the same Article structured data guidelines. For an indie blog, guide, or changelog post, BlogPosting is the most specific Schema.org type, while Article works well as a clean default.
Where should I put Organization schema markup on my site?
Google recommends placing Organization structured data on your homepage or a primary page that describes your company, such as an About Us page. You do not need to repeat full Organization details on every individual article page.
Can Google read JSON-LD injected by JavaScript or Next.js?
Yes. Google Search can read JSON-LD injected by JavaScript. Still, server-rendering a native script tag in Next.js layout or page components avoids delays and lets raw HTML checkers read it right away.
Why didn't my rich results appear after passing the Rich Results Test?
Passing validation makes a page eligible for rich results, not guaranteed to display them. Google decides per query based on search history, location, device, and quality guidelines, and it may still take several days for Googlebot to recrawl deployed changes.
Generate Clean JSON-LD and Verify Your Raw HTML
Create ready-to-paste Article and Organization snippets in SearchBop's Schema Markup Generator, then inspect your rendered output with the HTML SEO Checker before deploying. When you want ongoing technical audits and ASO workflows without recurring subscriptions, try SearchBop—a desktop SEO and App Store Optimization assistant with free calculators.
Sources: Google Search Central — Introduction to Structured Data Markup, Google Search Central — Organization Schema Markup, Google Search Central — Article Schema Markup, Google Search Central — General Structured Data Guidelines, Next.js Documentation — How to Implement JSON-LD, Schema.org — Schema Markup Validator, Google Search — Rich Results Test, SearchBop — Schema Markup Generator, SearchBop — HTML SEO Checker
Related workflows
Explore the relevant Searchbop workflow or use a free browser tool.