Function stringify

Source
pub fn stringify(data: &JsValue) -> Result<String, JsValue>
Expand description

This function provides a canonical string for any JSON document. Order of the keys in objects, whitespace and unicode normalization are all taken care of, so document that belongs to a single digest is not malleable.

This is a drop-in replacement for JSON.stringify(data)