pyany_to_value

Function pyany_to_value 

Source
pub fn pyany_to_value(value: &Bound<'_, PyAny>) -> PyResult<Value>
Expand description

Converts a Python object to a serde_json::Value.

§Arguments

  • value - Python object to convert.

§Returns

A serde_json::Value representing the Python object.

§Errors

Returns an error if the Python object type is not supported.