pub async fn response_json<T: DeserializeOwned>( response: Response<impl Body<Data = Bytes, Error = ErrorCode>>, ) -> Result<T, Error>
Collect the remaining body in memory and decode JSON, regardless of status.