Convert TOML to JSONL

Turn TOML files into JSONL. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line, with values and key order kept.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TOML files on the dialor turn it to pick what to do

TOML turned into JSON Lines.Each entry of a top-level list becomes one line of compact JSON.

  1. What you get

    One JSONL file. If your TOML has a top-level list, each entry of that list becomes one line of compact JSON. Any other value becomes a single line.

    Values and key order are kept.

  2. What changes

    Dates and times become ISO 8601 text. Comments are dropped, so they do not appear in the JSONL file.

    To go the other way, use JSONL to TOML.

  3. When it fails

    A file that cannot be parsed stops the conversion with input_corrupted. This happens when the TOML itself is not readable as TOML.

TOML and JSONL.What each format is.

The formats

From · TOML

TOML

TOML configuration files, the format of Cargo and pyproject.

Extensions
.toml
MIME type
application/toml
Kind
Text and data
To · JSONL

JSON Lines

JSON Lines, one JSON object per line, the format of logs and datasets.

Extensions
.jsonl .ndjson
MIME type
application/jsonl
Kind
Text and data

In your code.The same TOML to JSONL conversion through the API, for your app or your agent.

terminal
$ cv convert report.toml report.jsonl
$ cv convert report.toml report.jsonl

Questions.What people ask about TOML to JSONL.

01OF 04

Each entry of a top-level list becomes one line of compact JSON. Any other value becomes a single line.

Yes. Values and key order are kept.

They become ISO 8601 text in the JSONL file.

No. Comments are dropped.

More conversions.Other ways in and out of TOML and JSONL.