把 JSON 粘贴进来,一键格式化排版、压缩、校验合法性;出错时给出具体位置(行/列),还能统计键总数和嵌套深度。全部在你的浏览器本地运行,不上传任何数据。Paste JSON to format, minify and validate it in one click. Errors come with an exact position (line/column), and you get key counts and nesting depth. Everything runs locally in your browser — nothing is uploaded.
(格式化结果会显示在这里)(Formatted result will appear here)
格式化使用浏览器内置的 JSON 解析器,与各大编辑器、接口调试工具的结果一致;「按键名排序」会递归地对每一层对象的键按字母排序,数组顺序保持不变。Formatting uses the browser's built-in JSON parser, so results match major editors and API tools. Key sorting is recursive for every object level; array order is preserved.