JSON Formatter automatically formats and prettifies JSON in Firefox. It comes with support for syntax highlighting and over 60 themes. It also makes links clickable automatically and has multiple modes to view JSON, including Parsed Mode, Formatted Raw Mode, and Raw Mode.
Note: This extension requires additional configuration to work.
As Firefox already has an inbuilt JSON Formatter, you need to disable it for this extension to work.
to do so, go open "about:config", search "devtools.jsonview.enabled", make it "false" to disable the default JSON Formatter and you are ready to go. For more info Check out Disabling JSON Viewer in Firefox
You can toggle between modes using shortcut keys:
Parsed Mode: P key
Formatted Raw Mode: Shift + R key
Raw Mode: R key
Toggle Dark Mode: D key
Toggle Toolbar: T key
Features:
- Over 60 themes for both light and dark mode
- Syntax highlighting
- Works offline
- No tracking or analytics
- Word wrapping and sorting order to stay organized
- Works with any JSON webpage
- Makes links clickable
- Formats JSON automatically
- Raw, Formatted Raw, and Parsed Mode
- Remembers theme preferences
- Shortcut keys for ease of use
- Collapsible toolbar
Note: By default, the extension theme is "System Default." It will change according to your browser's theme. If you want it to be the theme of your choice, you have to set it from the "Extension Settings" or "Extension Options."
To change the default formatting option and other settings, set your desired option in the extension settings.
To make JSON Formatter work properly on all kinds of sites, in the extension permissions, change "Allow this extension to read and change all your data on websites you visit" from "On Click" to "On all sites," if not already set.
To use JSON Formatter in local files, enable "Allow access to file URLs" in the extension settings.
To use JSON Formatter in Incognito mode, enable "Allow in Incognito" in the extension settings.
Some URLs to test on:
https://type.fit/api/quotes
https://api.github.com/users
https://api.github.com/users/arnav-kr
https://api.github.com/repos/arnav-kr/arnav-kr/readme
https://api.npms.io/v2/search?q=dc-tokens
https://anapioficeandfire.com/api/houses/1
Created By:
Arnav Kumar,
GitHub: @arnav-kr
Twitter: @arnavkr_
Source code:
github.com/arnav-kr/json-formatter/tree/firefox
Bug reports and suggestions:
github.com/arnav-kr/json-formatter/issues
Changelog:
github.com/arnav-kr/json-formatter/blob/main/CHANGELOG.md Install
- License: MIT License
- Weekly downloads: 20
- Average daily users: 51
- Rating: 0/5 of 0 ratings
- Created: 2023-03-27 11:42:10
- Last updated: 2023-03-27 20:50:21
- Homepage: https://github.com/arnav-kr/json-formatter
- Support site and email
- Donate
- Orig: https://addons.mozilla.org/en-US/firefox/addon/json_formatter/
- API: {db8ff575-504f-4f3d-a910-07702998d21d}