holoscan::config_io::parse
holoscan::config_io::parse
Parse an explicitly selected JSON or admitted YAML source into an owned document.
Duplicate keys, invalid closed-enum values, unsupported YAML features, and all bound violations fail before a Document is published. Lossless mode retains immutable same-format source evidence and scalar token spans; parser-provider objects never cross this API.
Returns: The immutable Document with semantic and raw-source identity.
Throws: config::ConfigException on validation or parse failure.
Parameters
source
Complete source bytes, borrowed only for this call.
format
Syntax selected by the caller; no filename or content inference occurs.
options
Preservation and resource-limit policy.