Skip to main content

tojsonl

The tojsonl command converts CSV data to JSON Lines format.

Syntax

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

Description

The tojsonl 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 CSV data to JSON Lines format:

qsv tojsonl 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

  • to - for converting CSV data to various formats
  • json - for converting CSV data to JSON format