Fix JSON
cc_fix_jsonAutomatically repairs common JSON errors—such as BOM, trailing commas, single quotes, comments, and NUL bytes—to produce valid JSON. Preview issues with dry_run or create a backup before fixing.
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 |