JSONView is a Web extension compatible with Firefox and Google Chrome that helps you view JSON documents in the browser.
Normally, when encountering a JSON document (content type application/json
), Firefox simply prompts you to download the view. With the JSONView extension, JSON documents are shown in the browser similar to how XML documents are shown. The document is formatted, highlighted, and arrays and objects can be collapsed. Even if the JSON document contains errors, JSONView will still show the raw text.
Once you've got JSONView installed, check out this example JSON file to see the extension in action!
If you'd like to contribute to JSONView but don't want to code, consider contributing a translation. Copy the existing localization files from src/_locale
and fill them in for your own language, then send a pull request. You can do it all from the GitHub interface. There are not many strings to translate!
Use the GitHub Issue tracker for JSONView to file issues. Pull requests are especially welcome.
Before contributing to JSONView, make sure to read the Contributing Guidelines. I appreciate contributions people make to JSONView, but the goal of the extension is to be simple and straightforward, so I frequently reject contributions that add complexity or unnecessary features. Please consider filing an issue before doing any work, so you don't waste time on something I won't accept.
corepack enable
.pnpm i
inside the jsonview repository.pnpm start
to build the extension.about:debugging#addons
in the address bar, check "Enable add-on debugging", select "Load Temporary Add-on", and choose the jsonview/build-firefox/manifest.json
file.edge://extensions/
, in the address bar, enable "Developer mode", select "Load Unpacked", and choose the jsonview/build-chrome
folder.pnpm tests
to start a little webserver that serves all the JSON files in ./tests
.JSONView makes use of TypeScript. I recommend VSCode for editing the code - it will automatically prompt to install the correct extensions, and will highlight errors. All of the code that makes up the extension itself are in src/
.
JSONView is open source software under the MIT license.
pnpm start
jsonview-chrome.zip
and jsonview-firefox.zip
can then be manually uploaded to the extension sites.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。