hydra.json.writer module
JSON serialization functions using the Hydra AST.
- hydra.json.writer.hex_byte(c: int) str
Encode a byte (0..255) as a two-character lowercase hex string. Non-byte inputs yield placeholder ‘?’ characters.
- hydra.json.writer.json_string(s: str) str
Escape and quote a string for JSON output.