pub async fn read_json<T>(filename: &Path) -> Result<T>where
T: DeserializeOwned,
Expand description
Read text file and deserialized it using serde-json
.
pub async fn read_json<T>(filename: &Path) -> Result<T>where
T: DeserializeOwned,
Read text file and deserialized it using serde-json
.