Skip to main content

Module jsonout

Module jsonout 

Source
Expand description

Shared JSON result output for the --json / --json-pretty tools: one place that decides compact (the default, one line for piping into jq) vs. pretty-printed (indented, for reading). --json-pretty implies --json.

Functions§

print
Print a JSON value to stdout — pretty-printed (indented) when pretty, else compact on a single line.