Guides

Recognize how JSON minification handles duplicate keys

Follow these steps using a local file and keep the original.

Recognize how JSON minification handles duplicate keys
Actual local tool workspace with a synthetic sample.

Prepare the example

Create disposable test input with the exact content below (UTF-8 text unless marked hex). For duplicate filenames, save the two files in separate folders.

duplicate.json
{"x":1,"x":2}

Create a disposable JSON object with two keys named x: {"x":1,"x":2}.

Run the workflow

  1. Open the related tool below and load the prepared file(s).
  2. The parse-and-serialize output retains the last x value (2).

Verified example result

This example was reproduced in Chrome on 2026-12-04 using FileTypeKit 0.9.0 and synthetic data. The expected result or expected refusal was checked; this does not establish support for every real file.

The downloaded output was checked against the expected properties below.

Example output
duplicate.min.json
Observed size
7 bytes
SHA-256
5e2b030a4a0f1582d78c0fd9924511cd6b1f2df9879e574f5ea1406c94052418

This digest describes the tested output; other encoders or versions may produce different bytes. Verify the expected properties, not only the digest.

Limitations and what to verify

Do not use minification to preserve duplicate-key source text or digital signatures.

Open related tool