Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str, format: &str) -> Result<Document, ParseError>
Expand description

Parses a JSON or YAML AGS document with duplicate-key rejection.

format is matched case-insensitively; json selects JSON and all other values select YAML.