pub fn minify_json(input: &[u8]) -> Result<Vec<u8>, JsonMinifyError>Expand description
Strips insignificant JSON whitespace from input, preserving key order, string
content/escapes, and number spelling exactly.
Empty input is a special case: serde_json treats b"" as invalid JSON, but this
transform must be a no-op (not an error) on empty input, so it short-circuits before
validation.