Skip to content
Novus Examples
json533 B

JSON-LD missing required properties (deliberately invalid)

A deliberately invalid Product record: no name, an Offer with a currency but no price, a brand with no @type, a Review with no rating, an AggregateRating with no ratingValue, and an availability given as a bare token instead of a schema.org URL. Valid JSON throughout, so the failure is semantic.

Preview — first 23 linesjson
{
  "@context": "https://schema.org",
  "@type": "Product",
  "@id": "https://www.example.com/catalog/mystery#product",
  "description": "Deliberately invalid product record: no name and an incomplete offer.",
  "brand": {
    "name": "Example Outdoors"
  },
  "offers": {
    "@type": "Offer",
    "priceCurrency": "EUR",
    "availability": "InStock"
  },
  "review": {
    "@type": "Review",
    "reviewBody": "Sample review with no rating."
  },
  "aggregateRating": {
    "@type": "AggregateRating",
    "reviewCount": 12
  }
}

Specifications

Seed
70400
Site
example.com (fictional)
Format
JSON-LD (schema.org)
Encoding
UTF-8
Types
Product, Offer, Review, AggregateRating
Missing Required
5
Deliberately Invalid
true

Testing contract

Expected to fail
Scenario
Validate a structured-data document that parses but does not satisfy its type.
Expected result
JSON parsing succeeds and five required-property errors are reported - Product.name, Offer.price, AggregateRating.ratingValue, Review.reviewRating and the untyped brand - with the bare `InStock` flagged as a non-canonical enumeration value.

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 missing required properties (deliberately invalid)” 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-invalid-required.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.