免费在线 JSON 修复工具
AI 模型中的无效 JSON、复制粘贴的 JavaScript 或手动编辑的配置令人沮丧。 Dokall 的 JSON 修复工具会自动修复常见语法问题并返回有效的、打印精美的 JSON。
粘贴损坏的 JSON,单击“修复”,然后复制结果。该工具列出了修复的内容 - 删除了尾随逗号、标准化引号、闭合括号等等。所有处理都在您的浏览器中运行。
Frequently Asked Questions
What JSON errors can this tool fix?
Common fixes include trailing commas, single-quoted strings, unquoted keys, JavaScript-style comments, markdown code fences around JSON, and truncated output from LLMs. The tool lists every fix it applied so you can review the changes.
Can it fix JSON from ChatGPT or other AI models?
Yes. LLM output frequently includes trailing commas, markdown wrappers (```json), and comments - all invalid in strict JSON. Paste the raw output and Dokall repairs it into valid, pretty-printed JSON.
Is repaired JSON always correct?
The tool fixes syntax errors, not semantic errors. A repaired file is valid JSON, but the data might still be wrong - missing fields, incorrect types, or truncated values. Always review the output, especially for AI-generated content.
What is the difference between JSON repair and JSON format?
The JSON formatter validates and pretty-prints already-valid JSON. JSON repair fixes broken syntax first, then formats. Use repair when JSON.parse() throws an error; use the formatter when your JSON is valid but minified or hard to read.
Is my data sent to a server?
No. Repair runs entirely in your browser. Your JSON - including API keys, user data, and configs - never leaves your device.