Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Config, HoconError>
Expand description

Parse a HOCON string into a Config.

Inherits the process environment for ${VAR} resolution. Entries whose name or value is not valid UTF-8 are skipped rather than converted lossily, so such a variable resolves as if it were unset: ${?VAR} is undefined and ${VAR} is the usual unresolved-substitution error. A non-UTF-8 name is unreachable from UTF-8 HOCON source anyway.