pydict_to_value

Function pydict_to_value 

Source
pub fn pydict_to_value(pydict: &Bound<'_, PyDict>) -> PyResult<Value>
Expand description

Converts a Python dictionary to a serde_json::Value.

§Arguments

  • pydict - Python dictionary to convert.

§Returns

A serde_json::Value representing the dictionary.