json_format
Format JSON with indentation (2 or 4 spaces, or tabs) and optionally sorted keys. Returns the formatted text. Use to make machine JSON readable or to normalise it for diffs. Costs $0.001 in USDC on Base per successful call, paid with x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The JSON text | |
| indent | No | 2 (default), 4 or tab | |
| sortKeys | No | true to sort object keys |