Skip to content
Testaroo
json1.3 KB

JSON Feed 1.1

A JSON Feed 1.1 document (the JSON alternative to RSS/Atom) with a feed header and three items using content_html, content_text, tags, and publish dates, for testing JSON Feed parsers and readers.

Preview, first 43 linesjson
{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Novus Examples Blog",
  "home_page_url": "https://example.com/",
  "feed_url": "https://example.com/feed.json",
  "description": "Sample JSON Feed fixture for parser testing.",
  "language": "en-US",
  "authors": [
    {
      "name": "Novus Examples",
      "url": "https://example.com/about"
    }
  ],
  "items": [
    {
      "id": "https://example.com/posts/3",
      "url": "https://example.com/posts/testing-file-formats",
      "title": "Testing File Formats",
      "content_html": "<p>A short post about testing parsers with known fixtures.</p>",
      "summary": "A short post about testing parsers with known fixtures.",
      "date_published": "2026-01-03T09:00:00Z",
      "tags": [
        "testing",
        "formats"
      ]
    },
    {
      "id": "https://example.com/posts/2",
      "url": "https://example.com/posts/why-fixtures-matter",
      "title": "Why Fixtures Matter",
      "content_text": "Deterministic sample files make regression testing reproducible.",
      "date_published": "2026-01-02T09:00:00Z"
    },
    {
      "id": "https://example.com/posts/1",
      "url": "https://example.com/posts/hello-world",
      "title": "Hello, World",
      "content_text": "The first post.",
      "date_published": "2026-01-01T09:00:00Z"
    }
  ]
}

Specifications

Format
JSON Feed 1.1
Items
3
Spec
jsonfeed.org/version/1.1

Testing contract

Expected to pass
Scenario
Exercise JSON Feed 1.1 in its feeds workflow. A JSON Feed 1.1 document (the JSON alternative to RSS/Atom) with a feed header and three items using content_html, content_text, tags, and publish dates, for testing JSON Feed parsers and readers.
Expected result
top-level keys are version, title, home_page_url, feed_url, description, language, authors, items; array lengths: authors=1, items=3; selected values: {"version": "https://jsonfeed.org/version/1.1"}. Declared feature checks: items=3; spec=jsonfeed.org/version/1.1.

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 Feed 1.1” is a deterministic Testaroo fixture for Feed parsing, Playlist & feed parsing, JSON parsing, Editor testing. Well-formed RSS 2.0 and Atom feeds with multiple entries, for testing feed readers and parsers.

Documented properties for this file: JSON Feed 1.1. 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.

Data fixtures document their exact quirks (delimiters, encodings, null handling, schema, and row counts) in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.

Code examples

import json

with open("feed.json") as f:
    data = json.load(f)
print(type(data), len(data))

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