pub fn digest(data: &JsValue) -> Result<String, JsValue>
Expand description
Calculates the digest of a JSON document. Since this digest is calculated by recursively replacing sub-objects with their digest, it is possible to selectively reveal parts of the document using {@link selectiveDigestJson}