Format a JSON document
format_jsonFormat (pretty-print or minify) a JSON document, optionally sorting object keys. Number literals are preserved exactly (64-bit IDs safe); parse errors report the exact line and column.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON text to format. | |
| indent | No | Indentation: '2' or '4' spaces, 'tab', or 'minify'. Defaults to '2'. | |
| sort_keys | No | Sort object keys alphabetically. Defaults to false. |