Function process_json_file

Source
pub async fn process_json_file<F, Fut>(
    file_path: &Path,
    processor: F,
) -> Result<()>
where F: FnOnce(Value) -> Fut + Send, Fut: Future<Output = Result<()>> + Send,
Expand description

Processes a JSON file with a given processor function.

ยงErrors

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