pub fn from_reader<R, T>(rdr: R) -> Result<T> where
    R: Read,
    T: DeserializeOwned
Expand description

parses a Reader using a serde deserializer.

Errors

Will return Err if an IO error is encountered while reading rdr or if the readers content is invalid JSON.