pub fn to_json(doc: &Document, config: &ToJsonConfig) -> Result<String, String>
Convert Document to JSON string