Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path) -> Result<Value>
Expand description

Parse a config file into a generic JSON Value tree.

The format is detected from the file extension. Files with no recognized extension are tried as YAML first (the default config format), then TOML.

Empty or whitespace-only files are treated as empty config objects.