Function json_io::load [] [src]

pub fn load<P, T>(path: P) -> Result<T, Error> where
    P: AsRef<Path>,
    T: Deserialize

Construct a Deserializable type from a JSON file at the given path.

json_io will first try and open the file with the path exactly as given.

If the file isn't found, it will set the extension to .json and try again.