/// Parse JSON via string for performance reasons, see: <https://github.com/serde-rs/json/issues/160>
Parse JSON via string for performance reasons, see.
Parse JSON via string for performance reasons see .
fn unwrap_json<T>(resp: reqwest::blocking::Response) -> Result<T>
    where T: serde::de::DeserializeOwned
{
    let body = resp.text()?;
    let data = serde_json::from_str(&body)?;
    Ok(data)
}
fn unwrap_json < T > ( resp : reqwest :: blocking :: Response ) -> Result < T > where T : serde :: de :: DeserializeOwned { let body = resp . text ( ) ? ; let data = serde_json :: from_str ( & body ) ? ; Ok ( data ) }
Parse JSON via string for performance reasons, see: <https://github.com/serde-rs/json/issues/160>
Parse JSON via string for performance reasons see : <https : // github . com / serde - rs / json / issues / 160 >
resp
reqwest::blocking::Response