MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _json_bytes

Function _json_bytes

deployments/desktop/server.py:31–32  ·  view source on GitHub ↗
(payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

29
30
31def _json_bytes(payload: Dict[str, Any]) -> bytes:
32 return json.dumps(payload, ensure_ascii=False, indent=2).encode("utf-8")
33
34
35def _sse_bytes(event: str, payload: Dict[str, Any]) -> bytes:

Callers 1

_send_jsonMethod · 0.85

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected