pub fn set_json_mode(enabled: bool)
Set JSON mode for the current process.
Call this at the start of command handling if --json flag is set.
--json