pub async fn get_json<T: DeserializeOwned>(
    uri: &str,
    token: Option<&Token>
) -> Result<T, Error>
Expand description

Performs a GET request that expects a json response that can be deserialized into the an owned value of the expected type. Returns an error if nothing is returned.