Skip to main content

canonical_json_bytes

Function canonical_json_bytes 

Source
pub fn canonical_json_bytes<T: Serialize>(value: &T) -> Result<Vec<u8>, Error>
Expand description

Serialize JSON with recursively ordered object keys.

ยงErrors

Returns an error when the value cannot be represented as JSON.