pub fn from_slice<'a, T>(s: &'a mut [u8]) -> Result<T> where
    T: Deserialize<'a>, 
Expand description

parses a byte slice using a serde deserializer. note that the slice will be rewritten in the process.

Errors

Will return Err if s is invalid JSON.