Function read_json_file

Source
pub fn read_json_file<T: DeserializeOwned>(path: &Path) -> Result<T>
Expand description

Reads the JSON file at the specified path and deserializes it into the provided type. Returns an error if the file cannot be read or deserialization fails.