Back

JSON Lines tool

Formatters

Loading

Loading tool

Preparing the tool. The remaining time is not yet known.

All processing for this tool happens in your browser. Your input is not sent to a server.

About this tool

Parse newline-delimited JSON into an array or generate compact records from JSON.

Common uses

  • Parse newline-delimited JSON into an array or generate compact records from JSON.
  • Choose parse or generate mode and paste NDJSON or JSON.

How to use it

  1. 1.Choose parse or generate mode and paste NDJSON or JSON.
  2. 2.Set JSON indentation, run, and review valid-record counts and line errors before copying.

Worked example

Input and result

1
bad
2
[1,2] + 1 line error

Unlike the strict JSON Lines converter, this parser retains valid records.

Limits and notes

  • Parsing skips blank and invalid lines while retaining valid records. Generation treats a non-array JSON value as one record.

Frequently asked questions

What does this tool do?

Parse newline-delimited JSON into an array or generate compact records from JSON.

What should I check before using the result?

Parsing skips blank and invalid lines while retaining valid records. Generation treats a non-array JSON value as one record.

Related tools