how to restrict indentation while using jq filters on json file
There is currently no way to instruct jq to preserve the indentation style per se, but the --indent N
and --tab
command-line options give limited control over the style of indentation. Thus, in the particular case given, one could achieve the desired effect using --indent 4
.