Return deterministic JSON serialization of a dict. Keys are sorted, no extra whitespace, ASCII-safe.
(data: dict[str, Any])
| 165 | |
| 166 | |
| 167 | def canonical_json(data: dict[str, Any]) -> str: |
| 168 | """ |
| 169 | Return deterministic JSON serialization of a dict. |
| 170 | Keys are sorted, no extra whitespace, ASCII-safe. |
| 171 | """ |
| 172 | return json.dumps(data, separators=(",", ":"), sort_keys=True, ensure_ascii=False) |
| 173 | |
| 174 | |
| 175 | # ── Agent Certificate Signing ────────────────────────────────────────────────── |
no outgoing calls
no test coverage detected