diff --git a/index.html b/index.html index 076aea2..daa6831 100644 --- a/index.html +++ b/index.html @@ -382,6 +382,15 @@
颜色选择器
+
+
📋
+
+

JSON 格式化

+

JSON 代码格式化、压缩和验证工具

+
+
JSON 格式化
+
+
⚙️
@@ -464,6 +473,10 @@ title: "颜色选择器", url: "color_pick.html", }, + json: { + title: "JSON 格式化", + url: "json_formatter.html", + }, other: { title: "其他功能", url: "other_function.html", @@ -536,12 +549,13 @@ // Ctrl/Cmd + 数字键快速切换工具 if (e.ctrlKey || e.metaKey) { const key = parseInt(e.key); - if (key >= 1 && key <= 5) { + if (key >= 1 && key <= 6) { const toolNames = [ "welcome", "calculator", "number", "color", + "json", "other", ]; const toolName = toolNames[key - 1]; diff --git a/json_formatter.html b/json_formatter.html new file mode 100644 index 0000000..dceaf3e --- /dev/null +++ b/json_formatter.html @@ -0,0 +1,615 @@ + + + + + + JSON 格式化工具 - 功能工具箱 + + + +
+
+

📋 JSON 格式化工具

+

美化和验证您的 JSON 代码,支持实时格式化和错误检查

+
+ +
+
+ + + + +
+ +
+
+ + +
+
+ + +
+
+
+ +
+
+
+ 输入 JSON + 0 字符 +
+
+ +
+
+ +
+ +
+
+ 格式化结果 + 0 字符 +
+
+
+ 格式化结果将显示在这里... +
+
+
+
+ +
+
+ +
+ 就绪 + 正在格式化... +
+
+ + + + \ No newline at end of file