pub fn parse_str(text: &str, origin: &str) -> Result<LoopConfig, CoreError>
Parse config text, trying YAML first (a superset of JSON in practice) and falling back to strict JSON so both error messages survive to the caller.