JSON 编辑器
在树形或代码视图中编辑、验证 JSON。
About this tool
以树形视图可视化编辑 JSON,需要精确控制时可切换到原始代码。语法校验在复制到应用或 API 客户端前就能发现错误。
Why use it
- 树形视图便于展开和编辑嵌套对象。
- 代码模式支持整块粘贴与查找替换。
- 一键压缩用于生产载荷;JSON 不会离开浏览器。
Common use cases
- 根据部署日志修复损坏的配置文件。
- 在代码中映射字段前先探索 API 响应。
- 提交文档前整理 JSON 格式。
Tips
- 先粘贴加载,再切换模式:编辑器保留同一份数据。
- 用树形视图找缺失键;用代码模式快速重命名。
使用方法
- 粘贴 JSON 并加载。
- 编辑。
- 复制或压缩。
常见问题
- Is my JSON sent to a server?
- No. The editor runs entirely in your browser; your data stays on your device.
- What is the difference from the JSON formatter?
- The formatter pretty-prints or minifies text. The editor lets you change values in a tree or code view.
- Can I edit nested objects?
- Yes. Tree mode expands objects and arrays so you can edit fields individually.
- Does it validate JSON?
- Invalid JSON shows an error when you load or export; fix syntax before copying.
- Can I switch between tree and code?
- Yes. Use the mode menu in the editor toolbar after loading valid JSON.
- Is there a size limit?
- Very large documents may slow the browser, but nothing is uploaded to Frespy.