Skip to main content
InputOutputAlias
JSONEachRow, JSONLines, NDJSON, JSONL

Description

In this format, ClickHouse outputs each row as a separated, newline-delimited JSON Object. This format is also known as JSONEachRow, NDJSON (Newline Delimited JSON), or JSONL (JSONLines). All these names are aliases for the same format and can be used interchangeably.

Example usage

Inserting data

Using a JSON file with the following data, named as football.json:
Insert the data:

Reading data

Read data using the JSONLines format:
The output will be in JSON format:
Importing data columns with unknown names will be skipped if setting input_format_skip_unknown_fields is set to 1.

Format settings

Last modified on June 19, 2026