Skip to main content

minify

Function minify 

Source
pub fn minify(node: &JsonNode) -> String
Expand description

Minifies the JSON node, stripping all whitespace and formatting.

§Arguments

  • node - A reference to the root JsonNode to minify.

§Returns

A single-line JSON string representation of the node without any unnecessary whitespace.