highjson
Compare, clean, convert, check and search JSON in your browser.
- Runs on
- Web
- Status
- Available
- Version
- 0.1.0
- Source
- Closed source
- Built with
The problem
Most of my JSON work is small jobs. For example, I compare two API responses, clean a payload, make types from a sample or check data against a schema. Each job usually needs a different website. Also, many JSON tools compare lists by position. If you add one item at the top of a list, every item after it shows as changed.
What it does
highjson puts six JSON tools on one website. You do not need an account.
- Compare two JSON files and see the changes as a tree, a list or a graph.
- Make messy JSON neat or small, and repair broken JSON.
- Change JSON into YAML, CSV, XML and other formats, and back again.
- Make types for TypeScript, Python, Go, Rust and other languages from one sample.
- Check JSON against a JSON Schema, and see each error and its location.
- Search inside JSON, and see the values that match.

Compare shows the changes while you type. It knows when a list changed only its order, so it does not show false changes. You can ignore fields by name. You can save the result as a patch file, a report or an image.

Compare and Format also keep your past work in your browser.
Decisions & trade-offs
One result for every view. I calculate the changes one time, and every view shows that one result. The tree, the list, the graph and the export always agree. The cost is that the patch export is a report to read. You cannot always apply it safely as a patch.
Match list items by key only when it is safe. I match items by a key such as id only if every item has the key and each value is unique. Then a moved item is compared with itself, not with a different item. The cost is that one item without the key stops key matching for the full list.
Short share links. I store a shared comparison on my server and give you a short link. If the server is not available, the link contains the two documents. The cost is that your shared documents stay on my server, and large documents make long links.
JSON from a URL through my server. Most APIs block requests from a browser, so my server gets the JSON for you. The cost is that the URL and its response go through my server, with a limit on size and on time.
History without accounts. I keep your history in your browser. You need no login, and your history does not go to a server. The cost is that history stays in that one browser. If you clear the site data, you lose it.