pub fn dom_from_slice(json: &[u8]) -> Result<Document>
Parse a json into a document.
If the json is valid utf-8, recommend to use dom_from_slice_unchecked instead.
dom_from_slice_unchecked