json2jsonl

A lightweight command-line tool to convert multiple JSON files into a single JSONL (JSON Lines) output file.

Usage

json2jsonl [options] <file1.json> <file2.json> ...

Options

  • -o string: Output file path. If omitted, output is written to standard output (stdout).
  • -h: Show help message.

Examples

Convert multiple files and save to output.jsonl:

json2jsonl -o output.jsonl data1.json data2.json

Convert a file and pipe output to another command:

json2jsonl data.json | grep "foo"

Download

License

Free to use for any purpose.