Fix JSON
fc_fix_jsonRepairs common JSON errors such as BOM, trailing commas, single quotes, comments, and NUL bytes in a file. Use dry-run to preview issues without changes, and create a backup before applying fixes.
Instructions
Automatically repairs common JSON errors.
Args:
path (string): Path to the JSON file
dry_run (boolean, optional): Only show problems, do not repair
create_backup (boolean, optional): Create backup before repair
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 | Only show problems | |
| create_backup | No | Create backup |