The "tree" command will output JSON on fd3 (which it dubs 'stddata') when available.
If more programs adopt that pattern we could use stdout (fd1) only for interactive programs.
If more programs adopt that pattern we could use stdout (fd1) only for interactive programs.