How to add line numbers to JQ output
<p>I was curious if there is a clean way to add line numbers to <code>jq</code>'s output while still retaining the coloring of the output. I have tried piping from <code>jq</code> to <code>cat -n</code> but unfortunately this removes the coloring which helps a lot when traversing the JSON tree.</p>