Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
ApiHandler = Callable[[Dict[str, Any], Dict[str, Any]], Dict[str, Any]]
30
31
32
def
_json_bytes(payload: Dict[str, Any]) -> bytes:
33
return
json.dumps(payload, ensure_ascii=False, indent=2).encode(
"utf-8"
)
34
35
Callers
1
_send_json
Method · 0.85
Calls
1
encode
Method · 0.80
Tested by
no test coverage detected