jq
jq copied to clipboard
--indent 0 removes newlines
I initially thought it would be easy to get output to look like this guy wants his to look: https://github.com/stedolan/jq/issues/1462
However, using --indent 0 from commandline jq seems to have simply disabled prettyprinting entirely, and in addition to removing indent characters, it removes newlines as well, which is surprising and unintuitive.
To elaborate, a common desired output is one field per line, with no [hierarchical] indentation.
Current (alleged buggy) behavior of --indent 0 seems redundant with --compact-output
--thus we either need it fixed, or to find/make another way to specify the desired output.