-
jq — https://jqlang.org/ — "like sed for JSON data"
There are several options available for installing jq. I prefer to use Homebrew:
brew install jq
-
jq -s '.' input.jsonl > output.json
-
jq -c '.[]' input.json > output.jsonl
Note: This document is now included in Cookbook · jqlang/jq Wiki.
🫶