Canonicalize JSON under RFC 8785
canonicalize_jsonConverts a JSON document to RFC 8785 canonical bytes so you can hash, sign, or compare it deterministically.
Instructions
Admit one JSON document and return its RFC 8785 canonical bytes, with the jcs-admit crate.
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": {
"document": "<document>"
},
"name": "canonicalize_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | rfc8785 | |
| document | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||