Skip to main content

jsonl

The jsonl command converts CSV data to JSON Lines format.

Syntax​

qsv jsonl [options] <input_file> [<output_file>]

Description​

The jsonl command is used to convert CSV data to JSON Lines format. This is useful for streaming data and integrating with systems that require JSON Lines input.

Options​

  • --no-headers: When set, the first row will not be interpreted as headers

Examples​

Convert to JSON Lines​

Convert a CSV file to JSON Lines format:

qsv jsonl DLD_Transactions_English_500.csv output.jsonl

Common Use Cases​

  • Streaming data
  • Integrating with systems that require JSON Lines input

Tips​

  • Verify the output to ensure the data is correctly converted
  • Use in combination with other commands for complex data processing

See Also​

  • select - for selecting specific columns
  • apply - for data transformations