pub async fn get_json<U, O>(uri: U) -> Result<O, Box<dyn Error + Sync + Send>>where U: TryInto<Uri>, Box<dyn Error + Sync + Send>: From<<U as TryInto<Uri>>::Error>, O: DeserializeOwned + Unpin,
Send a GET request to the uri and de-serializes the response.
uri
The http_client is used to send the request.
http_client