Function json_io::save [] [src]

pub fn save<P, T>(path: P, t: &T) -> Result<(), Error> where
    P: AsRef<Path>,
    T: Serialize

Save an Encodable type to a JSON file at the given path.

The file will be saved with the ".json" extension whether or not it was given with the Path.