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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "abox_json_format"
}
}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. |