rfletcher/safari-json-formatter
About
A Safari extension that makes valid JSON documents human-readable.
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalJSON Formatter
A Safari extension which makes valid JSON documents human-readable.
Before:

After:

Installation
Download the extension and open it with Safari 5.
Usage
Once installed, load any valid JSON document. This project's most recent commit makes a good example.
Version History
1.1
- Added folding of arrays, objects and long strings
- Added setting for auto-folding of long strings (default: on)
- Added setting for "long string" threshold (default 512 bytes)
- Added a "toggle formatting" button to switch between formatted and original JSON
- Bug Fixes
Caveats
The extension aims to produce the same JSON string that's been loaded as input, but because the original JSON has actually been parsed, some transformation may occur. In other words, the formatted JSON will always be equivalent to the original JSON, but in rare circumstances it may not match exactly. The only known example of this is kind of discrepancy is between number formats -- if the original JSON contains the numeric value 1e2, for example, the formatted JSON will display the value 100.
Explore related projects
Loading…