Skip to main content

json_pretty

Function json_pretty 

Source
pub fn json_pretty(input: &str) -> Result<String, String>
Expand description

Pretty-print JSON with two-space indentation.

ยงErrors

Returns an error when the input is not valid JSON.