Skip to main content

canonical_json

Function canonical_json 

Source
pub fn canonical_json(value: &Value) -> Vec<u8> 
Expand description

Serializes a serde_json Value to canonical JSON with sorted keys. Matches Python’s json.dumps(sort_keys=True, separators=(‘,’,‘:’)).