JSON 格式化与校验
在左侧粘贴 JSON 后点击「格式化」即可美化排版,点击「压缩」可压缩为单行。出错时会给出错误所在的行号。
功能特性
Format & beautify JSON
Validate JSON syntax
Minify JSON
Syntax highlighting
Error line detection
使用方法
1. 把 JSON 粘贴到左侧的输入框。
2. 选择缩进方式(2 空格 / 4 空格 / Tab)。
3. 点击「格式化」美化,或点击「压缩」压缩为单行。
4. 点击「复制」按钮即可复制结果。
常见问题
What is JSON?
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate.
How to validate JSON?
Paste your JSON data into the editor above and click 'Format'. If the JSON contains syntax errors, the tool will highlight the exact line and position of the error.