Convert JSONL to INI

Turn JSONL files into INI. Top-level objects become [sections] and plain top-level values come first, and an object inside a section becomes its own section named with a dot, such as [server.tls].

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

JSON Lines turned into INI sections.Objects become sections, and nested objects get dotted names.

  1. What you get

    One INI file with sections of key and value pairs. Plain top-level values are written first, before any section. Each top-level object becomes its own [section].

    An object inside a section becomes a section of its own, named with a dot, such as [server.tls].

  2. How lists are written

    A list becomes a repeated key, one line for each item. An empty list disappears, because there are no items to write.

    Objects or lists inside a list are written as JSON text on the key's line.

  3. A top-level list

    When the top level is a list, each entry becomes one section, numbered from 0 under items, such as [items.0]. An entry that is not an object goes under the key value.

    To go the other way, use INI to JSONL.

JSONL and INI.What each format is.

The formats

From · 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
To · INI

INI

Sections of key and value pairs, the settings format of Windows and many tools.

Extensions
.ini .cfg
MIME type
text/x-ini
Kind
Text and data

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

terminal
$ cv convert report.jsonl report.ini
$ cv convert report.jsonl report.ini

Questions.What people ask about JSONL to INI.

01OF 04

An object inside a section becomes its own section with a dotted name, such as [server.tls].

It disappears. A list is written as a repeated key, and an empty list has no items to write.

Plain top-level values come first in the file, before the first section.

Each entry becomes a section numbered from 0, such as [items.0]. An entry that is not an object is written under the key value.

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