util_json_canonical
JSON canonicalization (RFC 8785 JCS) + hash — Canonicalize JSON with the RFC 8785 JSON Canonicalization Scheme (keys sorted by UTF-16 code units, no whitespace, ECMAScript number form) and hash it (SHA-256 default; hash=sha384|sha512|sha1, hex + base64url) so you can sign, cache-key or de-duplicate JSON regardless of key order or formatting. json= (URL-encoded, max 100000 chars, 50000 values). Flags I-JSON problems: duplicate keys, integers beyond 2^53, numbers with more than 17 significant digits, unpaired surrogates, -0. b= a second document to test semantic equality (same canonical bytes) with the first differing offset. pretty=true adds a key-sorted indented version. Parse errors -> 422 with line/column. Offline, no data stored. Price: $0.001 USDC (Base, via x402).
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": "util_json_canonical"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | {"b":[1.0,2e3,{"z":true,"a":null}],"a":"hi"} |