Skip to main content

format

Function format 

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

Formats the JSON node. Uses lossless number representations to preserve precision. Retrieves configuration settings directly from the global singleton.

§Arguments

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

§Returns

The pretty-printed JSON string representation of the node.