reth_cli_util::parsers

Function read_json_from_file

Source
pub fn read_json_from_file<T: DeserializeOwned>(
    path: &str,
) -> Result<T, FsPathError>
Expand description

Wrapper around [reth_fs_util::read_json_file] which can be used as a clap value parser.