pub fn value_to_pyobject(py: Python<'_>, val: &Value) -> PyResult<Py<PyAny>>Expand description
Converts a serde_json::Value to a Python object.
This is a common conversion pattern used when converting Params to Python dicts.
ยงErrors
Returns a PyErr if the value type is unsupported, numeric extraction fails,
or conversion fails.