Format JSON in modal dialog with right-click

Latest Version

Version
1.1.0
Update
June 5, 2020
Size
29.26KiB
Developer
Category
Users
249
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ContextMenus
ActiveTab
Storage
See more

JSON Formatter In Modal Extension

1.Select the JSON text in the page and right-click to display the formatted JSON in the modal dialog of current page.
2.Support JSON page(image 2).
3.Double-click a curly bracket/square bracket/parenthesis, it will match another bracket and automatically select the content.
4.Right-click the icon in the upper right corner-> Options, enter the configuration page to set a regular expression, used to replace the selected text before formatting; you can enter multiple replacement operations, separated by \"\\,\" will be serially replaced in order(image 3、4).
5.Automatically remove illegal characters outside the first and last brackets of text(image 5).
6.Support to select only one or more key-value pairs.
7.Click the mask layer to close the modal dialog


1.在页面中选中一段JSON文本,然后右键单击在当前页面中弹框(modal-dialog)显示格式化后的内容
2.支持JSON页面(图2)
3.双击一个花/中/圆括号,会匹配另一个括号并自动选中其中的内容
4.右击右上角图标->选项, 进入配置页面设置正则表达式,用于在格式化之前对选中文本进行替换操作;可以输入多个替换操作,以\"\\,\"分隔,会按顺序进行串行替换(图3、4)
5.自动去除文本首尾括号外的不合法字符(图5)
6.支持仅选择一个或多个键值对
7.单击遮罩层可关闭弹框
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "JSON Formatter In Modal", "version": "1.1.0", "description": "Format JSON in modal dialog with right-click", "author": "cjh", "icons": { "48": "icon.png", "128": "icon.png" }, "background": { "page": "background/background.html" }, "options_ui": { "page": "options/options.html", "open_in_tab": false }, "content_scripts": [ { "matches": [""], "js": [ "contentScript/tool.js", "contentScript/getFormattedHtml.js", "contentScript/template.js", "contentScript/renderModal.js", "contentScript/xhrFormat.js", "contentScript/dom.js", "contentScript/bracketMatch.js" ], "run_at": "document_start" } ], "permissions": ["contextMenus", "activeTab", "storage"]}
Read more

Similar Extensions

icon

JSON Visualizer Extension · Developer Tools 249 3 ★ 149KiB

icon

Nested Object JSON Parser Extension · Developer Tools 249 0 ★ 21.21KiB

icon

Json Viewer Editor Extension · Productivity 249 8 ★ 1.39MiB

icon

JSON Formatter Extension · Developer Tools 249 5 ★ 34.77KiB

icon

Seven JSON Viewer Extension · Developer Tools 249 8 ★ 228KiB

icon

Rainbow Brackets Extension · Accessibility 249 7 ★ 532KiB

icon

JSON Formatter Extension · Developer Tools 249 1 ★ 26.69KiB

icon

JSON Formatter Extension · Productivity 249 0 ★ 1.59MiB

icon

Jipy Extension · Developer Tools 249 2 ★ 13.43KiB

icon

Ultra Fast JSON Viewer Extension · Developer Tools 249 3 ★ 9.94KiB

icon

JSON Formatter Extension · Developer Tools 249 33 ★ 102KiB

icon

JSON Formatter for API Extension · Developer Tools 249 1 ★ 55.46KiB

icon

console.sparkline Extension · Developer Tools 249 1 ★ 4.7KiB

icon

JSON Compressor Extension · Developer Tools 249 2 ★ 68.14KiB

icon

Cookie Tool Extension · Developer Tools 249 1 ★ 79.23KiB

icon

Rainbow JSON Formatter Extension · Developer Tools 249 7 ★ 52.65KiB

icon

DOM to JSON Selector Extension · Developer Tools 249 0 ★ 48.55KiB

icon

DOM-JSON Tree Matcher Extension · Developer Tools 249 0 ★ 18.58KiB

icon

JSON Formatter 格式化 Extension · Developer Tools 249 8 ★ 57.07KiB

icon

JSONpop - Textarea JSON editor Extension · Productivity 249 4 ★ 228KiB

icon

JSON Viewer React Extension · Developer Tools 249 2 ★ 882KiB

icon

DOM to JSON Converter Extension · Developer Tools 249 1 ★ 18.23KiB

icon

DJSON. JSON Viewer & Formatter Extension · Developer Tools 249 68 ★ 126KiB

icon

JSON.format Extension · Developer Tools 249 1 ★ 13.52KiB

User reviews

icon

Ying Yi (ID: 00000032965d7a60) Voted 5 ★ - Updated 11/16/2021 cool

icon

Yi Gao (ID: 000000550287054f) Voted 5 ★ - Updated 08/21/2020 niubility

icon

谢渊 (ID: 00000066389ecc6b) Voted 5 ★ - Updated 03/12/2020 this ext is great, I don't have to open vscode just for format json