Skip to content

ftchvs/jsonanalyzer-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Analyzer HTML

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.

Features

  • Single-file static app in index.html
  • Multiple .json file 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

Usage

Open index.html directly in a browser, or serve the folder with any static file server.

python3 -m http.server 8080

Then open http://localhost:8080.

Expected JSON Shape

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.

Privacy

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.

Screenshot

JSON Analyzer screenshot

Contributing

Contributions are welcome. Keep the sample dependency-free unless there is a clear reason to add a build tool or framework.

License

MIT. See LICENSE.

About

jsonanalyzer-html is a tool for visualizing and analyzing JSON data directly in the browser. It provides an intuitive interface for developers and analysts to interact with JSON files, making data exploration and manipulation easier.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages