-
jq — https://jqlang.github.io/jq/ — "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
jq — https://jqlang.github.io/jq/ — "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