pub fn write_canonical_value<W: Write>(w: &mut W, v: &Value) -> Result<()>Expand description
Write a Value as canonical JSON into a Write.
Streams output to the writer rather than building an intermediate String.
This is the hot path for hash-chain append: every byte written to disk
flows through this function, so reducing allocations matters at scale.