a11y.skipToMainContent
1

JSON 格式/ 验证器

格式化、 修改或验证浏览器中的任何 JSON 。 选择缩进样式并查看无效输入的错误细节 .

tool.json-formatter.resultsHere
tool.json-formatter.jsonPathHelp

name — top-level property

address.city — nested property (dot notation)

skills[0] — specific array index

skills[*] — all items in an array

users[*].name — property of every item in an array

Note: Simple dot/bracket notation only. Arrays support [*] for wildcard and [N] for index.

Was this tool helpful?
Send output to:
Advertisement

How to use JSON Formatter / Validator

  1. 贴上你的JSON.
  2. 单击格式、缩小或验证.
  3. 复制结果.

{姓名}是什么来着?

纯打印 JSON 的可读性, 修改其可传输性, 或验证输入清晰地解析 。 校验表面解析错误和解析失败的位置 。 所有处理都是局部的——您的数据永远不会离开您的浏览器。

Advertisement

FAQ

它支持大文件吗?
是的——在现代浏览器中可以舒适地处理JSON可达几兆字节.
它遵循什么标准?
严格RFC8259JSON. 不允许评论和后缀逗号.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement