json_format
Parses JSON text, reports the exact syntax error position if invalid, and returns it pretty-printed or minified with key count and depth. Optionally sorts keys. 0.001 USDC per call via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | pretty or minify | pretty |
| text | Yes | Input text (max 20,000 characters) | |
| sortKeys | No | ||
| paymentProof | No | Payment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof. |