Skip to content
Novus Examples
json1.1 KB

JSON-LD NewsArticle with author and publisher

A valid NewsArticle with two authors, a publisher whose logo carries explicit pixel dimensions, three images at the aspect ratios news results expect, and both publication and modification timestamps. For testing article extraction and date normalisation.

Preview — first 43 linesjson
{
  "@context": "https://schema.org",
  "@type": "NewsArticle",
  "@id": "https://www.example.com/news/winter-range-announced#article",
  "headline": "Winter range announced",
  "description": "Sample news article record. Fictional data.",
  "datePublished": "2026-01-01T08:00:00+00:00",
  "dateModified": "2026-01-01T10:15:00+00:00",
  "mainEntityOfPage": {
    "@type": "WebPage",
    "@id": "https://www.example.com/news/winter-range-announced"
  },
  "author": [
    {
      "@type": "Person",
      "name": "A. Sample",
      "url": "https://www.example.com/authors/a-sample"
    },
    {
      "@type": "Person",
      "name": "B. Example"
    }
  ],
  "publisher": {
    "@type": "Organization",
    "name": "Example Dispatch",
    "logo": {
      "@type": "ImageObject",
      "url": "https://cdn.example.net/img/logo.png",
      "width": 600,
      "height": 60
    }
  },
  "image": [
    "https://cdn.example.net/img/news-16x9.jpg",
    "https://cdn.example.net/img/news-4x3.jpg",
    "https://cdn.example.net/img/news-1x1.jpg"
  ],
  "articleSection": "Product news",
  "inLanguage": "en",
  "isAccessibleForFree": true
}

Specifications

Seed
70400
Site
example.com (fictional)
Format
JSON-LD (schema.org)
Encoding
UTF-8
Types
NewsArticle, Person, Organization, ImageObject
Authors
2
Images
3

Testing contract

Expected to pass
Scenario
Extract article metadata for a news index.
Expected result
Two Person authors are returned in order, the publisher logo resolves with width 600 and height 60, and datePublished/dateModified parse as ISO 8601 with an explicit UTC offset.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“JSON-LD NewsArticle with author and publisher” is a deterministic Novus Examples fixture for Web assets, JSON parsing, Schema validation, Metadata testing. Favicons, web app manifests, service workers, robots and sitemap files, Open Graph images, and .well-known resources — for testing web tooling, crawlers, PWA installers, and asset pipelines.

Documented properties for this file: seed 70400 · UTF-8 · JSON-LD (schema.org). Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Web-platform fixtures are standards-compliant samples against fictional example.com data. Test crawlers, PWA installers and manifest validators, favicon/icon pipelines, service-worker registration, or .well-known parsers against the documented structure.

Code examples

import json

with open("jsonld-news-article.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/web_p7.py. Free for any use, no attribution required — license.