A dependency-free static HTML sample for comparing properties across multiple JSON files in the browser.
The app flattens nested JSON keys, displays values across files in a horizontally scrollable table, highlights changed cells, and supports JSON/CSV export. It runs entirely client-side, so files are read locally and are not uploaded to a server.
- Single-file static app in
index.html - Multiple
.jsonfile upload - Built-in sample data for quick testing
- Nested key flattening with dot paths and array indexes
- Change highlighting between adjacent files
- Sticky key column for wide comparisons
- Export results as JSON or CSV
- Copy table as tab-separated text
- No build step and no runtime dependencies
Open index.html directly in a browser, or serve the folder with any static file server.
python3 -m http.server 8080Then open http://localhost:8080.
The analyzer accepts any valid JSON object. If a file contains a properties object, that object is used as the comparison root and timestamp is used for ordering/display:
{
"timestamp": "2026-05-01T10:00:00Z",
"properties": {
"customer": {
"plan": "starter"
},
"cart": {
"items": 2
}
}
}If properties is not present, the full JSON object is analyzed.
Uploaded files are read with the browser File API. The sample has no server calls and does not persist payloads.
Do not use sensitive production data in a hosted copy unless you control and trust that hosting environment.
Contributions are welcome. Keep the sample dependency-free unless there is a clear reason to add a build tool or framework.
MIT. See LICENSE.
