Function as_json

Source
pub fn as_json<T>(response: Response<Vec<u8>>) -> Result<T>
Expand description

Helper function to parse the body of a response into a deserializable value

Will generate a warning, if the content-type is not application/json