[go: up one dir, main page]

Function serdeconv::to_json_file [] [src]

pub fn to_json_file<T: ?Sized, P>(value: &T, path: P) -> Result<()> where
    T: Serialize,
    P: AsRef<Path>, 

Converts the value to a JSON string and writes it to the speficied file.