JSON ⇄ JSON Lines

Convert between JSON and JSON Lines (NDJSON) format

Input
Output
What is JSON Lines?

JSON Lines (also called newline-delimited JSON or JSONL) is a convenient format for storing structured data that may be processed one record at a time. Each line is a valid JSON value.

  • Easy to parse and stream process large datasets
  • Each line is a separate, independent JSON object
  • Commonly used in data processing and log files