pub fn read_json<P: AsRef<Path>, T: DeserializeOwned>( path: P, ) -> Result<T, Error>
Reads a JSON file and deserializes it into an object. This function will error if the file cannot be read or deserialized.