Skip to main content

stable_object_key_bytes

Function stable_object_key_bytes 

Source
pub fn stable_object_key_bytes(value: Value) -> Result<Vec<u8>, Error>
Expand description

Encodes one JSON value with object keys sorted at every level.

Workspace builds can enable serde_json/preserve_order. Sorted keys keep the encoded body independent of map insertion order. The signer does not include the body.

ยงErrors

Returns an error if JSON encoding fails.