Skip to content
Novus Examples
json568 B

host-meta.json (JRD, JSON form)

The JSON Resource Descriptor twin of the XRD host-meta: identical subject, alias, expiry, property and three links, expressed with lower-case JSON member names. For testing XRD-to-JRD conversion against a known answer.

Preview — first 26 linesjson
{
  "subject": "https://www.example.com",
  "aliases": [
    "https://example.com"
  ],
  "expires": "2027-01-01T00:00:00Z",
  "properties": {
    "http://example.com/ns/service-tier": "sample"
  },
  "links": [
    {
      "rel": "lrdd",
      "type": "application/jrd+json",
      "template": "https://www.example.com/.well-known/webfinger?resource={uri}"
    },
    {
      "rel": "http://openid.net/specs/connect/1.0/issuer",
      "href": "https://id.example.com"
    },
    {
      "rel": "author",
      "href": "https://www.example.com/humans.txt"
    }
  ]
}

Specifications

Seed
70400
Site
example.com (fictional)
Format
JRD (RFC 6415 appendix A)
Links
3
Aliases
1
Properties
1
Location
/.well-known/host-meta.json

Testing contract

Reference control
Scenario
Convert the XRD host-meta twin to JRD and compare with this document.
Expected result
The conversion produces the same subject, one alias, one property keyed by its full URI, and three links whose rel values and lrdd template match exactly.

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

“host-meta.json (JRD, JSON form)” is a deterministic Novus Examples fixture for Web assets, JSON parsing, 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 · JRD (RFC 6415 appendix A). 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("host-meta.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.