serde_json5

Function from_reader

Source
pub fn from_reader<T, R>(reader: &mut R) -> Result<T>
where T: DeserializeOwned, R: Read,
Expand description

Deserialize an instance of type T from any implementation of Read. Can fail if the input is invalid JSON5, or doesn’t match the structure of the target type.