Format a JSON-RPC command for transmission. Args: command: JSON-RPC command object Returns: JSON string representation (single line, compact)
(command: dict[str, Any])
| 165 | |
| 166 | |
| 167 | def format_json_rpc_command(command: dict[str, Any]) -> str: |
| 168 | """Format a JSON-RPC command for transmission. |
| 169 | |
| 170 | Args: |
| 171 | command: JSON-RPC command object |
| 172 | |
| 173 | Returns: |
| 174 | JSON string representation (single line, compact) |
| 175 | """ |
| 176 | return json.dumps(command, separators=(",", ":")) |