Fix JSON
cc_fix_jsonRepairs common JSON errors like BOM, trailing commas, single quotes, and comments. Use dry-run to preview changes and optionally create a backup.
Instructions
Automatically repairs common JSON errors.
Args:
path (string): Path to the JSON file
dry_run (boolean): Only show issues
create_backup (boolean): Create backup
Repairs: BOM, trailing commas, single quotes, comments, NUL bytes
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the JSON file | |
| dry_run | No | Preview only | |
| create_backup | No | Create backup |