Skip to content
Format
JSON
Limit
1 MiB total
Runtime
Browser

Compare ordered JSON arrays with movement-aware alignment

Align ordered arrays without turning one insertion into a cascade of positional changes.

Local processingNo sign-upNo presets or upload

Compare ordered arrays

Each document is capped at 512 KiB; combined input is capped at 1 MiB.

Tool Swim does not upload, fetch, save, log, or create presets from these values.

Ordered alignment report

The report states the algorithm, semantics, paths, counts, or conflicts used as proof.

What this tool proves

Explicit, bounded structural semantics

A bounded longest-common-subsequence pass preserves the shared order and marks additions or removals around it. Arrays are limited to 2,000 items each because this alignment uses quadratic work.

Order is part of the result

A bounded longest-common-subsequence pass preserves the shared order and marks additions or removals around it. Arrays are limited to 2,000 items each because this alignment uses quadratic work.

Each document is capped at 512 KiB, combined input at 1 MiB, traversal at 100,000 values and 100 levels, reports at 10,000 entries, and output at 1 MiB. Source and results stay in the active browser tab.

Parsing and comparison semantics

Inputs use the browser's JSON parser. Duplicate object names therefore keep their last value, object member order is ignored, array order is preserved unless the selected tool explicitly says otherwise, and integers outside JavaScript's safe range are rejected instead of rounded silently.

Primary references

Questions and answers

Related Data Diff tools