Skip to main content

Module canonical

Module canonical 

Source
Expand description

The canonical JSON every snapshot and “unchanged” decision compares: keys sorted at every depth, two-space pretty print, trailing newline — ir.mjs::canonicalJson. Sorting is explicit because serde_json’s own object order depends on a cargo feature another crate may enable.

Functions§

canonical_json
Stable, secret-free JSON of a value.
sort_keys
Every object’s keys sorted, at every depth.