Function stac_async::write_json_to_path
source · pub async fn write_json_to_path(
path: impl AsRef<Path>,
value: impl Serialize
) -> Result<()>
Expand 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();