Overview
OK JSON is a native and scriptable JSON formatter for your Mac. It’s really fast and well-integrated with macOS.
Features
The notable features from OK JSON are:
- Two-pane view. The tree structure and the formatted JSON string.
- Native user interface with beautiful syntax highlight themes.
- Built-in jq and JSONPath support.
- Formatting history is automatically saved to local database.
- Custom scripts to further process JSON string.
- Support opening JSON Lines (opens in a new tab), ndjson (opens in a new tab), and Property List (opens in a new tab) files.
- Offline and private.
While OK JSON is a JSON formatter to the core, the Scripts feature also makes it a text-processing tool.
Performance
Being native has the advantage on performance. But that’s far from enough. Web apps can have better performance than their native counterparts.
The good news is, for native apps, the room for improvement is much bigger.
We spend a lot of time on improving OK JSON’s performance. It pays off.
JSON File | File Size | Time (Normal Mode) | Time (Boost Mode) |
---|---|---|---|
citylots.json (opens in a new tab) | 189.8 MB | Can’t finish | 58.25 sec |
dictionary.json (opens in a new tab) | 23.0 MB | 1.15 sec | 0.98 sec |
formula.json (opens in a new tab) | 20.9 MB | 4.04 sec | 2.40 sec |
sample.json | 10.9 MB | 1.76 sec | 1.63 sec |
cask.json (opens in a new tab) | 4.6 MB | 1.12 sec | 0.75 sec |
install-events-365d.json (opens in a new tab) | 752 KB | 4.36 sec | 0.44 sec |
anybox_bookmarks_export.json | 620 KB | 0.32 sec | 0.24 sec |
sentry.json | 256 KB | 0.35 sec | 0.19 sec |
- These tests were run by a M2 Pro 10-core 32GB RAM Mac mini with OK JSON version 2.2 (102).
- Normal Mode: “Sort object properties” and “Expand all child nodes by default” are on.
- Boost Mode: “Sort object properties” and “Expand all child nodes by default” are off.