Fix JSON
fc_fix_jsonAutomatically repair common JSON errors including BOM, trailing commas, single quotes, comments, and NUL bytes. Optionally preview problems or create a backup before repair.
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 |