JSON 校验器
粘贴即校验:语法错误精确到行号列号并带 ▶ 指针片段,统计键数、嵌套深度与节点数。
Live
Pretty preview when valid
What is validated?
The tool applies the official JSON grammar (RFC 8259 as implemented by JSON.parse): strings must use double quotes, trailing commas are errors, and valid root values are objects, arrays, strings, numbers, true, false and null. On failure the parser position is translated into line/column coordinates. On success the structure summary counts every object key, the deepest nesting level and total nodes.
如何使用JSON 校验器
粘贴即校验:完整解析失败时停在第一个语法错误,行号、列号与出错片段一并给出。通过校验意味着任何标准解析器都会接受这份文档——这正是进生产配置前想要的保证。
校验器顺带解释常见误区:JSON 没有注释、键必须是双引号、不允许尾逗号、NaN 和 undefined 不是合法值。长文档里括号失配这种事,手动扫永远最慢,指针一指就到位。