Sub topic 10
Describing the Organization and News with JSON-LD
Assume you know basic HTML, URLs, and the purpose of a press release. This chapter uses JSON-LD, schema.org types, and a little JavaScript-style object notation. You do not need to write JavaScript. JSON-LD is data embedded in an HTML page so search engines and other tools can understand the page.
What JSON-LD adds
A visible page may show a headline, date, image, and publisher. A crawler must still infer what each value means. JSON-LD labels those values explicitly.
For a newsroom release, use:
NewsArticleorArticlefor the releaseOrganizationfor the company that publishes itheadlinefor the release titledatePublishedfor the original publication timedateModifiedwhen the page changespublisherfor the organizationimagefor a representative imagemainEntityOfPagefor the stable canonical URL
JSON-LD does not replace visible content. The headline, date, and organization name should also appear in the page that users read.
Build the data from the page
Keep structured data consistent with the HTML and page metadata. Use the same title, URL, image, and dates everywhere. Use an ISO 8601 date such as 2026-03-12T09:00:00Z; the Z indicates Coordinated Universal Time.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Acme launches Widget 2 | Acme Newsroom</title>
<link rel="canonical"
href="https://example.com/newsroom/acme-launches-widget-2">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"@id": "https://example.com/newsroom/acme-launches-widget-2#article",
"headline": "Acme launches Widget 2",
"description": "Widget 2 cuts setup time for small teams.",
"url": "https://example.com/newsroom/acme-launches-widget-2",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://example.com/newsroom/acme-launches-widget-2"
},
"datePublished": "2026-03-12T09:00:00Z",
"dateModified": "2026-03-12T09:00:00Z",
"image": [
"https://example.com/img/widget-2-1200x630.jpg"
],
"publisher": {
"@type": "Organization",
"@id": "https://example.com/#organization",
"name": "Acme",
"url": "https://example.com",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/img/acme-logo.png"
}
}
}
</script>
</head>
<body>
<main>
<article>
<h1>Acme launches Widget 2</h1>
<p><time datetime="2026-03-12">March 12, 2026</time></p>
<p>Widget 2 cuts setup time for small teams.</p>
</article>
</main>
</body>
</html>The @context identifies schema.org vocabulary. The @type identifies the kind of item. An @id gives the item a stable identifier, which helps different pages refer to the same organization or article.
| Property | Purpose | Maintenance rule |
|---|---|---|
| `headline` | Names the release | Match the visible `<h1>` |
| `datePublished` | Records original publication | Do not change it for minor edits |
| `dateModified` | Records the latest meaningful edit | Update it when the content changes |
| `publisher` | Identifies the organization | Use the same organization identity site-wide |
| `image` | Provides a representative image | Keep the URL public and stable |
Check common failures
Validate the JSON syntax before publishing. A missing comma or quote can make the entire block unreadable. Then use a structured-data testing tool and inspect the live page, not only a local copy.
Watch for these errors:
- The JSON-LD title differs from the visible headline.
datePublishedis changed whenever someone edits the release.- The image URL requires login, blocks crawlers, or returns an HTML error page.
- The canonical URL redirects to a different release.
- The organization name or logo is inconsistent across pages.
- A release is marked as
NewsArticleeven though it contains no substantive article content.
How the relationships fit together
Exercise
A release is edited on March 20, but it was first published on March 12. Which date should remain in datePublished, and what should change?
Show answer
Keep datePublished as the March 12 publication time. Change dateModified to the March 20 update time, if the edit is meaningful.