Function read_json

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