Skip to main content

canonicalize

Function canonicalize 

Source
pub fn canonicalize(json: &[u8]) -> Result<Vec<u8>, CanonicalError>
Expand description

The canonical bytes of JSON text as received: every member is kept, also those the reader does not understand. Rejects text that is not JSON, objects with two members of the same name, and numbers that are not safe integers.