Function write_json_to_path

Source
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 updates
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();