Function format_json_file

Source
pub async fn format_json_file(path: PathBuf) -> Result<()>
Expand description

Formats a JSON file to have pretty-printed JSON.

ยงErrors

Returns an io::Error if the file cannot be read, parsed as JSON, or written back.