Function stac_async::read_json
source · pub async fn read_json<T>(href: &str) -> Result<T>where
T: DeserializeOwned,Expand description
Reads any deserializable value from an href.
The href can be a url or a filesystem path.
Examples
let item: stac::Item = stac_async::read_json("data/simple-item.json").await.unwrap();