pub fn canonical_json<T: Serialize>(value: &T) -> Result<Vec<u8>>
Serialize value as canonical JSON: object keys sorted lexicographically.
value