Skip to main content

JSON Line writer

Generate a JSONL file on which you can append multiple JSON elements line by line. Every line is written as compact single-line JSON terminated by a newline.

Example
// 1st input:
{ "hello": "World" }

// 2nd input:
{ "hello": "France" }

// Configuration:
// Header: { "type": "header" }

// Output:
{ "type": "header" }
{ "hello": "World" }
{ "hello": "France" }

Parameters​

Header

A list of JSON values written before the records, one per line. Each entry must be a valid JSON value — this keeps every line of the file, header included, valid JSONL.

Footer

A list of JSON values written after the records, one per line, under the same rule as the header.

Input​

JSON elementrequired

All the JSON elements to append to the JSON file. It accepts fragment of JSON which will be merged if possible, or overwritten. For example:

Fragments of JSON
{"name": "John"}
{"age": "27"}
{"age": "42"}
Merged JSON
{"name": "John", "age": "42"}