pub fn canonical_json(value: &Value) -> Vec<u8> ⓘ
Serializes a serde_json Value to canonical JSON with sorted keys. Matches Python’s json.dumps(sort_keys=True, separators=(‘,’,‘:’)).