Skip to main content

from_reader

Function from_reader 

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

Deserialize a value from a JSON io::Read source.

Reads the entire input into memory, then parses. For large inputs where you already have the bytes in memory, prefer from_slice or from_str to avoid the copy.