Skip to main content

to_python_json

Function to_python_json 

Source
pub fn to_python_json(value: &Value) -> String
Expand description

Serialize with Python’s json.dumps(..., ensure_ascii=False) layout.

fastjev builds its prompt payload with Python’s default separators (", " and ": "), so matching that layout byte for byte is what keeps a bridged prompt identical to the reference implementation’s.