pub fn json_text(value: &Value, pretty: bool, cap: usize) -> (String, bool)
value as JSON text, indented or on one line, stopping at cap bytes. True when it was cut there.
value
cap