json-canonicalize
JSON canonicalize. Any JSON document in, URL-encoded as the json query parameter (up to 12,000 bytes), one RFC 8785 (JCS) canonical form out: object keys sorted by UTF-16 code units, no insignificant whitespace, ECMAScript string and number forms, plus SHA-256 and SHA-512 digests of the canonical bytes for attestation. Price: $0.002 per call, paid in USDC on Base mainnet over x402; an unpaid call answers HTTP 402 with the exact machine-readable payment terms.
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": {
"json": "<json>"
},
"name": "json-canonicalize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON document to canonicalize, as text (up to 12,000 bytes). |