pub fn parse(input: &str, format: &str) -> Result<Document, ParseError>
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.
format
json