cpython_json
pub fn to_json(py: Python, obj: &PyObject) -> Result<Value, JsonError>
Convert from a cpython::PyObject to a serde_json::Value.
cpython::PyObject
serde_json::Value