alias: check if stdout is a tty before using color output for json()