pub fn py_to_json_value(obj: &Bound<'_, PyAny>) -> PyResult<Value>
Convert a Python object to a JSON value.