Function formatjson::format_json_file
source · pub fn format_json_file(filepath: &str) -> Result<(), FormatJsonError>Expand description
Reads, formats, and overwrites the given JSON file.
Throws a FormatJsonError on invalid syntax, or failing to read/write the file.