Skip to main content

stringify_pretty

Function stringify_pretty 

Source
pub fn stringify_pretty(
    value: &Value,
    limits: Limits,
    indent: usize,
) -> Result<String, Error>
Expand description

Encode bounded JSON for people to read: every array element and object member on its own line, indented by indent spaces per level, “name”: value; empty containers stay “[]” / “{}”. The output ends without a newline.