jp
jp copied to clipboard
Create JSON array from matches
An alternate output mode would be helpful to pass on one JSON array with all the matches:
$ echo '[1, 2, 3, "nice"]' | jp -j '$.*'
[1, 2, 3, "nice"]