Function json_dump

Source
pub fn json_dump<T: Serialize>(
    data: &T,
    filepath: &str,
    pretty: bool,
) -> Result<(), Box<dyn Error>>
Expand description

Write data to JSON file with pretty formatting.