Function jsonutils::file::read_json

source ยท
pub fn read_json<P: AsRef<Path>, T: DeserializeOwned>(
    path: P,
) -> Result<T, Error>
Expand description

Reads a JSON file and deserializes it into a data structure. This function will error if the file cannot be read or deserialized into the aforementioned data structure.