Validation & Repair
Detect and fix invalid JSON with inline error highlighting and repair tools.
What it does
- Detects JSON errors
- Highlights issues inline
- Provides repair options
How validation works
- Runs automatically while you type
- Does not block editing
- Prevents saving invalid JSON
Error display
Errors are shown:
- Inline in the editor
- Near the problematic location
Common errors
- Missing commas
- Unclosed brackets
{or} - Invalid quotes
- Trailing commas
Repair
You can fix errors manually or use repair tools.
Repair modal
- Suggests fixes
- Lets you preview before applying
Auto-repair
Optional setting:
- Attempts to fix common issues
- May not work for complex errors
Important behavior
- You can continue editing with invalid JSON
- You cannot save until it is valid
Tips
- Fix errors early to avoid confusion
- Use formatting after repair
- Keep structures simple while editing
Limitations
- Some errors require manual fixes
- Auto-repair is best-effort only
Related
Last updated on