pub fn canonical_json_bytes<T>(value: &T) -> Result<Vec<u8>, Error>where
T: Serialize,Expand description
Serialize a value to canonical JSON bytes (RFC 8785).
This is the primary entry point. Converts a serializable Rust value into its canonical JSON byte representation suitable for signing or hashing.