pub fn from_str<'a, T>(s: &'a mut str) -> Result<T> where
    T: Deserialize<'a>, 
Expand description

parses a str using a serde deserializer. note that the slice will be rewritten in the process and might not remain a valid utf8 string in its entirety.

Errors

Will return Err if s is invalid JSON.