When using jq
to process JSON, I often lose the overview due to long JSON objects. Thus, something like jq . | less
would be nice. However, although the above works, the nice coloring by jq
is gone.
Is there another way to read jq
's output line by line, or window by window, without having the terminal spammed with the full JSON object?
Edit: This did not work for me: echo '{"hello": "world"}' | jq . | less -C