Repair broken / invalid JSON¶
repair fixes the common mistakes that make a JSON file invalid, so it becomes parseable and
openable: trailing commas, missing or extra brackets, unquoted keys, single quotes, comments,
and truncated endings.
repaired.jsonis the fixed file; the original is left untouched.--report fixes.csvwrites a list of every change that was made, so nothing is fixed silently.
In the desktop app¶
When a file fails to parse, the error panel offers a Repair… button. It shows what will be changed before it writes the fixed file.
Tips¶
- Run
inspectorvalidateafterwards to confirm the file is now valid. - For files that are valid but have the wrong shape, see Flatten nested JSON and Convert JSON.