JSON
JSON fixer
Most broken JSON is broken in a small, predictable way. DocuFormat shows you where, and when you want help, AI Fix proposes a corrected version and lists what it changed.
{ name: "Steve" active: true,}
{ "name": "Steve", "active": true}
Start with the diagnosis
Before anything is repaired, DocuFormat tells you what is wrong, using the same local parser that powers the validator. Often that is enough: delete a comma, add a quote, done.
When you want it fixed for you
Some inputs are messier: a pasted JavaScript object, a log line with truncated output, a config with comments. Click AI Fix and DocuFormat asks an AI model for a corrected version, with an explanation and a list of the specific problems it found.
The suggestion is shown beside your input, labelled as AI-generated, and is not applied until you choose Use as input. DocuFormat also re-validates the suggestion locally before presenting it, so you can see immediately whether it is actually valid.
Typical repairs
- Adding quotes around property names
- Replacing single quotes with double quotes
- Inserting missing commas
- Removing trailing commas
- Removing comments
The repair prompt asks for the smallest change that makes the input valid, and not to invent data or drop content unless validity requires it. Still, review the result: AI output is a proposal, not a guarantee. More on how this works on the AI JSON fixer page.
Fixing it by hand
If you would rather not use AI at all, the error list and highlighted lines are usually enough. Fix the first reported problem and re-validate; later errors are often side effects of earlier ones.
Questions, answered
Is AI Fix required?
No. Formatting and validation work without it, and AI Fix only runs when you click it.
Will AI Fix change my values?
It is instructed to make the smallest changes needed and not invent data. Always review the suggestion and its change list before using it.
What if the AI result is still invalid?
DocuFormat re-validates the suggestion locally and tells you if it still has problems, so you know before you use it.