Format a local JSON file
abox_json_formatPretty-print or minify UTF-8 JSON files while preserving numeric spellings, large integers, duplicate keys, escaped string tokens, and key order. Optionally sort keys and verify the written output.
Instructions
Pretty-print or minify UTF-8 JSON using the existing abox.tools parser. Preserves numeric spellings, large integers, duplicate keys, escaped string tokens and object key order. Optional natural key sorting. Writes a new JSON file with a final newline and verifies tokens and structure. Input up to 8 MiB and 256 nesting levels; output up to 32 MiB. File contents are not returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | 2 | |
| minify | No | ||
| sort_keys | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |