项目
在 GitHub 查看
wesbos/JSON-Alexander
关于
一个非常好用的 JSON 查看器浏览器扩展
开发工具可以做什么
- Syntax highlighting for keys, strings, numbers, booleans, and null
- Collapsible/expandable tree view with level controls
- Hover any property to see its full JSON path — click to pin, then copy
- Expand/collapse all children of an object with inline button
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文JSON Alexander
Believe it or not, George formats JSON. Download for Chrome or download + install yourself.
![]()


Features
- Syntax highlighting for keys, strings, numbers, booleans, and null
- Collapsible/expandable tree view with level controls
- Hover any property to see its full JSON path — click to pin, then copy
- Expand/collapse all children of an object with inline button
- Three view modes: Tree, Formatted, and Raw
- Copy JSON to clipboard
- JSON payload available in the console as
window.data - Light, dark, and auto (system) themes
- Indent guide lines with hover highlighting
- Optional custom cursor (via settings)
Installation
Chrome
- Open Chrome and navigate to
chrome://extensions - Enable Developer mode (toggle in the top right)
- Click Load unpacked
- Select the
distfolder inside this project
Firefox
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox - Click Load Temporary Add-on...
- Select the
manifest.jsonfile insidedist
Disable Firefox's Native JSON Viewer
Firefox has a built-in JSON viewer that can prevent this add-on from taking over JSON pages. Disable it first:
- Open a new tab and go to
about:config - Accept the warning prompt if shown
- Search for
devtools.jsonview.enabled - Set it to
false - Reload any JSON page
Development
npm run dev # watch mode — rebuilds on file changes
npm run build # production build
npm run zip # build and create json-alexander.zip
After making changes, reload the extension in your browser.
Usage
Navigate to any URL that returns JSON (e.g. https://jsonplaceholder.typicode.com/users). The extension automatically detects JSON responses and replaces the page with an interactive viewer.
- Level buttons (1, 2, 3... All) — collapse/expand the tree to a specific depth
- View picker (Tree / Formatted / Raw) — switch between interactive tree, pretty-printed JSON, and raw JSON
- Theme toggle — cycle between auto, dark, and light
- Copy JSON — copy the full JSON to clipboard
- Click any line — pins the JSON path in the toolbar, click Copy to copy it
- Console — the parsed JSON is available as
window.data - Settings (⚙) — toggle custom cursor
探索相关项目
加载中…