(dict: &Bound<'_, pyo3::types::PyDict>)
| 6215 | } |
| 6216 | |
| 6217 | fn py_dict_to_json(dict: &Bound<'_, pyo3::types::PyDict>) -> PyResult<String> { |
| 6218 | let py = dict.py(); |
| 6219 | let json_mod = py.import("json")?; |
| 6220 | let json_str = json_mod.call_method1("dumps", (dict,))?; |
| 6221 | json_str.extract::<String>() |
| 6222 | } |
| 6223 | |
| 6224 | fn py_any_to_json(value: &Bound<'_, PyAny>) -> PyResult<String> { |
| 6225 | let json_mod = value.py().import("json")?; |
no outgoing calls
no test coverage detected