pub async fn read_json<T>(href: &str) -> Result<T>where
T: DeserializeOwned,
๐Deprecated: use
stac
instead of stac-async
, which is deprecated and will receive no further updatesExpand 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("examples/simple-item.json").await.unwrap();