Skip to content
Testaroo
json244 B

Package Manifest - Intentionally Invalid, Conflict Markers in JSON

A package manifest left mid-merge, so the file is intentionally invalid JSON: conflict markers sit inside the dependencies object. Any tool that reads manifests has to fail on this with a message about the conflict rather than a bare syntax error at line 5.

Preview, first 14 linesjson
{
  "name": "@sample-org/ledger-web",
  "version": "4.3.0",
  "dependencies": {
<<<<<<< HEAD
    "chart-kit": "3.1.0",
    "decimal-lite": "2.4.1"
=======
    "chart-kit": "3.0.7",
    "decimal-lite": "2.5.0"
>>>>>>> feature/retry-budget
  }
}

Specifications

Seed
20260807
Intentionally Invalid
true
Conflict Style
merge
Repository Name
web/package.json
Regions
1
Parses As Json
false
Line Endings
LF
Encoding
UTF-8

Testing contract

Expected to fail
Scenario
Load a JSON file that still contains unresolved conflict markers.
Expected result
Parsing fails; a good implementation detects the <<<<<<< marker and reports an unresolved merge conflict rather than only 'unexpected token' at line 5.

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

“Package Manifest - Intentionally Invalid, Conflict Markers in JSON” is a deterministic Testaroo fixture for Error handling, Visual diff / regression, Code parsing. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: seed 20260807 · UTF-8 · LF. 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.

Diff and patch fixtures name their target paths and the exact edge case they exercise, rename, mode change, binary hunk, CRLF↔LF, or missing trailing newline. Apply or render them against the documented before-state; every author, path, and hash is fictional.

Code examples

import json

with open("conflict-in-package.json") as f:
    data = json.load(f)
print(type(data), len(data))

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