canonical_json

Function canonical_json 

Source
pub fn canonical_json(value: &impl Serialize) -> String
Expand description

Canonical JSON for value: object keys sorted, no whitespace.

Values that fail to serialize fall back to their Debug form, so a key is always produced.