pub fn to_canonical_string_pretty<T: Serialize>(value: &T) -> Result<String>Expand description
Serialize to canonical pretty JSON: object keys come out alphabetically
(serde_json::Value is backed by a BTreeMap), and the nodes/edges
arrays are sorted by a stable key so unchanged input is byte-identical.