JSON
JSON Repair
खराब JSON को ठीक करना — अतिरिक्त कॉमा, सिंगल कोट्स, बिना कोट वाली कीज़, कमेंट्स, Python लिटरल (True/False/None) और अन्य — लागू किए गए सभी सुधारों की लिस्ट के साथ।
Data that claims to be JSON often has small deviations from the spec: a trailing comma, single quotes, unquoted keys, Python literals like True/False/None instead of true/false/null. This tool fixes such issues automatically and lists every fix it applied.
How to use it
- Paste broken JSON and the tool immediately tries to fix syntax issues and shows the valid result.
- The list below shows each applied fix separately, so you can check exactly what changed.
- If it can't be repaired (the structure is too damaged), the tool points to the exact line where parsing stopped.
Common uses
- Fixing JSON copied from logs or a console, where strings may have been truncated or escaped incorrectly.
- Converting a Python-style dict (with True/False/None and single quotes) into valid JSON.
- Parsing an LLM response that promised JSON but added a comment or a stray comma.
Things to keep in mind
The tool only fixes syntax errors — it won't catch a broken data structure (a missing field, swapped values), since that kind of JSON is still syntactically valid.
If the damage is severe enough (a string cut off mid-way, for example), the automatic fix can produce an unexpected result — always check the output before using it.
इस टूल के बारे में लेख: JSON Repair: JSON क्यों टूटता है और इसे कैसे ठीक करें
अक्सर पूछे जाने वाले प्रश्न
यह टूल वास्तव में किस तरह की JSON गलतियां ठीक कर सकता है?
यह सामान्य समस्याओं को संभालता है जैसे ट्रेलिंग कॉमा, सिंगल कोट्स, बिना कोट वाली कीज़, मिसिंग कॉमा, और बेमेल ब्रैकेट्स — लेकिन यह उस डेटा को रिकवर नहीं कर सकता जो ट्रंकेट हो गया हो या मूल रूप से अस्पष्ट हो।
ठीक किया गया JSON फिर भी मेरे मूल इरादे से मेल क्यों नहीं खा सकता?
रिपेयर टूल संभावित सुधारों के बारे में उचित अनुमान लगाते हैं, लेकिन जब कोई JSON स्ट्रिंग गंभीर रूप से बिगड़ी हो, तो कई अलग-अलग संरचनाएं समान रूप से टूटे हुए इनपुट की उचित व्याख्या कर सकती हैं — हमेशा परिणाम की समीक्षा करें।
क्या मेरा JSON ठीक करते समय कहीं भेजा जाता है?
नहीं। रिपेयर प्रक्रिया पूरी तरह आपके ब्राउज़र में होती है — कुछ भी सर्वर पर नहीं भेजा जाता।
अगर मरम्मत का नतीजा ग़लत लगे तो क्या करें?
हमेशा नतीजे की मैन्युअल जांच करें, ख़ासकर जहां डेटा कटा हुआ था। ऑटोमेटिक मरम्मत "सबसे कम नुकसानदायक" अनुमान लगाती है (उदाहरण के लिए, सिर्फ़ खुले ब्रैकेट बंद करना), लेकिन अगर डेटा गंभीर रूप से ख़राब हो तो यह अंदाज़ा नहीं लगा सकती कि असल में कौन-सी वैल्यू मानी गई थी।
क्या यह टूल डेटा की तार्किक ग़लतियां ठीक करता है?
नहीं, सिर्फ़ सिंटैक्स की। अगर डेटा में कोई पूरी फ़ील्ड छूट गई हो या वैल्यू आपस में बदल गई हों (लेकिन JSON सिंटैक्स रूप से सही हो), तो टूल इसे नहीं पकड़ेगा — यह सिंटैक्स की ग़लती नहीं है।