Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

  1. JSONL → JSON

    jq -s '.' input.jsonl > output.json
  2. JSON → JSONL

    jq -c '.[]' input.json > output.jsonl
@spidy0x0
Copy link

spidy0x0 commented Feb 7, 2022

what's jq and can i install it with pip install jq?

@klein0r
Copy link

klein0r commented Mar 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment