How to use JSON Repair
Make malformed JSON parseable when a file has common problems such as dropped quotes or trailing commas. The output is a new JSON document you should compare with the original source.
- Paste the malformed content and run Repair.
- Inspect each reconstructed value, especially around an incomplete line, then verify the intended structure before using the result.
Example input
{name: "Notebook", price: 5,}Example use
Recover a small handwritten configuration example containing an unquoted key. Once repaired, validate it using the receiving app’s required schema.
Output and compatibility
The repair library applies heuristics. It can resolve syntax without knowing the meaning you intended, and cannot recover data that was never present. It does not validate business rules or run the content.
Verify the intended shape around a repaired region
Repair a small example first and compare where repaired fields or arrays now start and end. A missing quote can shift a field into the wrong object even when the result is syntactically valid. Check records before and after the original error, especially defaults and values used by other systems. Ask the source producer for a new export if you cannot confirm a field from the broken text.
Troubleshooting
If a truncated source is ambiguous, retrieve the original from its producer if possible. For very large or complicated files, try the part near the parser error before replacing any original.
Open the result in JSON Viewer to check nested fields and arrays.
Frequently asked questions
What kinds of errors can it fix?
Common issues include certain unquoted keys, trailing commas and missing delimiters; inspect the proposed changes.
Can it restore a missing value?
Lost content cannot be recovered from the broken text alone.
Does repair change whitespace?
The result is formatted as valid JSON with fresh indentation.
Is the repaired output guaranteed to match my schema?
Use JSON Schema Validator with your schema afterward.
Can I format already valid JSON without heuristic changes?
Use JSON Formatter.
How do I check for a wrong field type after repair?
Compare with a known sample and use JSON Schema Validator if a schema defines the expected type.
How can I check the repaired structure visually?
Use JSON Viewer to expand its records and inspect the nesting.