[][src]Function dropshot::test_util::read_json

pub async fn read_json<T: DeserializeOwned, '_>(
    response: &'_ mut Response<Body>
) -> T

Given a Hyper response whose body is expected to be a JSON object that should be parseable via Serde as type T, asynchronously read the body of the response and parse it, returning an instance of T.