pub async fn write_json_to_path(
path: impl AsRef<Path>,
value: impl Serialize,
) -> Result<()>
๐Deprecated: use
stac
instead of stac-async
, which is deprecated and will receive no further updatesExpand description
Writes any serializable value to a path.
ยงExamples
let item = stac::Item::new("an-id");
let value = stac_async::write_json_to_path("item.json", item).await.unwrap();