Skip to content
Novus Examples
json390 B

Source map v3 (external, with sourcesContent)

A complete v3 source map for the minified bundle: two sources with their full original text inlined in sourcesContent, two names, and five VLQ-encoded mapping segments. For testing source-map decoders and stack-trace symbolication without any network fetch of the originals.

Preview — first 19 linesjson
{
  "version": 3,
  "file": "bundle.min.js",
  "sourceRoot": "",
  "sources": [
    "src/greet.js",
    "src/index.js"
  ],
  "sourcesContent": [
    "export function greet(name) {\n  return `Hello, ${name}!`;\n}\n",
    "import { greet } from \"./greet.js\";\nconsole.log(greet(\"world\"));\n"
  ],
  "names": [
    "greet",
    "name"
  ],
  "mappings": "MAAOA,WAAeC,GACpB,qBCAF,YAAYD"
}

Specifications

Seed
70400
Site
example.com (fictional)
Version
3
Sources
2
Names
2
Sources Content
true
Mapping Segments
5

Testing contract

Expected to pass
Scenario
Decode the mappings and symbolicate a frame at generated line 1, column 6.
Expected result
The frame resolves to src/greet.js line 1 column 8 with name "greet"; both original files are recoverable from sourcesContent alone.

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

“Source map v3 (external, with sourcesContent)” is a deterministic Novus Examples fixture for Web assets, Code parsing, JSON parsing. 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. 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("sourcemap-external-v3.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.