try_deserialize_with_path

Function try_deserialize_with_path 

Source
pub fn try_deserialize_with_path<T: DeserializeOwned>(
    val: &Value,
) -> Result<T, Error>
Expand description

Attempt to deserialize val into T, returning an error string on failure that includes the JSON path (e.g. .capstone.probability).