Schema Markup That Survives a Redesign: JSON-LD as Data, Not Decoration
Structured data fails the same way everywhere: pasted into a template, never validated, silently broken by the next redesign. Treating JSON-LD as a data layer with tests instead of a snippet with hope.

Somewhere in every CMS template is a block of JSON-LD pasted from a tutorial in 2021. It declares the organization, maybe a breadcrumb, possibly an article type. Nobody has validated it since. The redesign in March renamed the author field, the schema now references a variable that is always empty, and Google has been ignoring the whole block for months.
Structured data is code. It has inputs, a schema, and failure modes. The teams whose rich results survive are the ones who treat it that way.
JSON-LD, always, in one place
Schema.org markup can be written inline as microdata — attributes scattered through your HTML — or as JSON-LD in a single script tag. Choose JSON-LD, exclusively. Microdata couples your structured data to your markup, which means every redesign is a chance to break it invisibly. JSON-LD is a data structure generated from the same source of truth as the page, living in one template function, reviewable in one diff.
function articleSchema(post: Post, site: SiteSettings) {
return {
class="text-code-string">"@context": class="text-code-string">"https://schema.org",
class="text-code-string">"@type": class="text-code-string">"Article",
headline: post.title,
description: post.excerpt,
datePublished: post.date,
dateModified: post.updated ?? post.date,
author: {
class="text-code-string">"@type": class="text-code-string">"Organization",
name: site.authorName,
url: site.url,
},
mainEntityOfPage: {
class="text-code-string">"@type": class="text-code-string">"WebPage",
class="text-code-string">"@id": class="text-code-string">`${site.url}/blog/${post.slug}`,
},
};
}The function takes the same post object the template renders. When the data model changes, TypeScript complains. That is the entire trick: make the schema a consumer of your data model, not a parallel copy of it.
The types that earn their keep
Not every schema type produces visible rich results. Prioritize the ones that do:
| Type | Rich result | Worth it | | :--- | :--- | :--- | | Article | Enhanced article display | Yes, on every post | | BreadcrumbList | Breadcrumbs in the SERP | Yes, trivial to generate | | FAQPage | Expandable Q&A | Yes, where content genuinely is FAQ | | Organization | Knowledge panel inputs | Yes, once, site-wide | | Product + Offer | Price and availability | Yes, if you sell | | Review | Stars | Only if reviews are real and on-page |
The "only if" clauses are load-bearing. Marking up content that is not visible on the page — reviews nobody can read, FAQs hidden from users — is a manual action waiting to happen. Google is explicit about this and occasionally enforces it at scale.
Validation is a test, not a ritual
The workflow that works:
1. In development, render a page and assert the JSON-LD parses and contains the required fields. This is a unit test, and it catches the "renamed variable" class of bug at commit time.
test(class="text-code-string">"article schema has required fields", () => {
const schema = articleSchema(fixturePost, fixtureSite);
expect(schema.headline).toBe(fixturePost.title);
expect(schema.datePublished).toMatch(/^\d{4}-\d{2}-\d{2}/);
expect(schema.author.name).toBeTruthy();
});2. Before launch, run the rendered URLs through the Rich Results Test. It shows what Google will parse, not what you hope it will.
3. In production, watch Search Console's enhancement reports. They tell you when valid items start erroring — which is how you learn that the March redesign broke the breadcrumb schema, in week one instead of month six.
The honest ceiling
Schema markup does not make you rank. It makes your existing rankings more clickable — breadcrumbs instead of a raw URL, an FAQ that takes up more SERP real estate, a price that pre-qualifies the click. That is a real, measurable CTR improvement on traffic you already have. It is also all it is. Anyone selling schema as a ranking factor is selling.
Generate it from your data model, test it like code, monitor it like infrastructure. Then forget about it — which is the point.
Paj Digital Labs
The engineering journal of Paj Digital Solutions — hosting, server infrastructure and web engineering, written by the people who run the servers.
Related reading

Lead Quality Reporting: Optimise for Accepted Work, Not Form Volume
A cheap form submission can be an expensive dead end. Connect acquisition to reviewed lead outcomes without exposing personal data or pretending attribution proves causation.

Technical SEO Monitoring: Catch Broken Signals Before the Monthly Report
Search visibility can regress after one template change. Monitor status, indexability, canonical hosts and sitemap eligibility with small concrete checks tied to release ownership.

SEO Migrations: Redirect Maps That Preserve the Reader’s Destination
A redesign can break search traffic without changing the content. Inventory old URLs, map real replacements and test redirects, canonicals and internal links before the launch.