Skip to main content

format_generic_json_for_display

Function format_generic_json_for_display 

Source
pub fn format_generic_json_for_display(
    line: &str,
    verbosity: Verbosity,
) -> String
Expand description

Format generic JSON output for display.

Parses the input as JSON and formats it according to verbosity level:

  • Full or Debug: Pretty-print with indentation
  • Other levels: Compact single-line format

Output is truncated according to verbosity limits.