Skip to main content

parse

Function parse 

Source
pub fn parse(text: &str) -> Result<Omm, OmmError>
Expand description

Parse an OMM in any supported encoding, detecting it from the leading non-whitespace character: < is XML, { or [ is JSON, anything else is KVN. JSON requires the json feature; without it a JSON document returns an error rather than being misread.