payware_utils_format_json_deterministic
Formats JSON payloads with deterministic key sorting to ensure consistent SHA-256 hashes and payware API compliance.
Instructions
[Merchant] Format JSON payload with deterministic key sorting for consistent SHA-256 calculation and payware API compliance
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": {
"payload": "<payload>"
},
"name": "payware_utils_format_json_deterministic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | JSON payload to format with deterministic serialization | |
| showComparison | No | Show comparison between standard and deterministic JSON | |
| calculateSHA256 | No | Calculate SHA-256 hash for JWT contentSha256 usage | |
| validateConsistency | No | Validate that multiple serializations produce the same result |