Convert JSONL to JSON using JQ

jq -s '.' input.jsonl > output.json

And the other way:

jq -c '.[]' input.json > output.jsonl