pub fn pretty(document: &Value) -> String
The document as PHP’s JSON_PRETTY_PRINT writes it, indented by four spaces.
JSON_PRETTY_PRINT