Skip to main content

format_json

Function format_json 

Source
pub fn format_json(text: &str, indent: Indent) -> Result<String, JsonError>
Expand description

One member or element per line, each level indented by indent (a tab, or indent.width spaces). Key order, number text and strings are kept exactly; only the whitespace between tokens changes.