foundry_common::fs

Function read_json_file

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

Reads the JSON file and deserialize it into the provided type.