JSON ซ่อม

แก้ไขเครื่องหมายจุลภาคต่อท้าย เครื่องหมายคำพูดเดี่ยว ความคิดเห็น และปัญหาทั่วไปอื่นๆ ของ JSON

เครื่องมือซ่อมแซม JSON ออนไลน์ฟรี

JSON ที่ไม่ถูกต้องจากโมเดล AI, การคัดลอกและวาง JavaScript หรือการกำหนดค่าที่แก้ไขด้วยมือนั้นน่าหงุดหงิด เครื่องมือซ่อมแซม JSON ของ Dokall จะแก้ไขปัญหาไวยากรณ์ทั่วไปโดยอัตโนมัติ และส่งคืน 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.