pub fn stable_json(value: &Value, indent: usize) -> Result<String, Error>Expand description
value as stable JSON: object keys sorted by their UTF-8 bytes, each element
and member on its own line indented by indent spaces per level, ": "
between a key and its value, empty arrays and objects as [] and {}, and a
trailing newline.
ยงErrors
Returns serde_json::Error when a value cannot be written, or when the
indentation of a line cannot be allocated, such as for an indent too large for
memory, where str::repeat would panic.