pub fn parse_document(text: &str, format: Format) -> Result<Value, String>Expand description
Parse config text of the given format into its document (a JSON value). A syntax error names the line/column; the document must be a mapping (object) at the top level.