pub fn value_to_pyobject(py: Python<'_>, val: &Value) -> PyResult<Py<PyAny>>Expand description
Converts a JSON Value into a corresponding Python object.
ยงErrors
Returns a PyErr if:
- numeric extraction fails.
- encountering an unsupported JSON number type.
- conversion of nested arrays or objects fails.