Convert JSON5 to INI

Turn JSON5 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 JSON5 files on the dialor turn it to pick what to do

JSON5 settings as an INI file.Objects become sections, and plain values sit at the top.

  1. What you get

    One INI file. Plain top-level values come first. Each top-level object becomes a section, such as [server].

    An object inside a section becomes its own section named with a dot, such as [server.tls]. JSON5 numbers become plain numbers.

  2. Lists

    A list becomes a repeated key, one line for each item. An empty list disappears, because there is nothing to repeat.

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

    A top-level list becomes one section per entry, numbered from 0 under items, as [items.0]. An entry that is not an object goes under the key value.

  3. What it leaves behind

    Comments are dropped. INI has no place for the comments that JSON5 allows, so they do not appear in the output.

    Unquoted keys, trailing commas and other JSON5 syntax do not carry over. The output holds only the keys and values.

JSON5 and INI.What each format is.

The formats

From · JSON5

JSON5

JSON with comments, trailing commas and unquoted keys.

Extensions
.json5
MIME type
application/json5
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 JSON5 to INI conversion through the API, for your app or your agent.

terminal
$ cv convert report.json5 report.ini
$ cv convert report.json5 report.ini

Questions.What people ask about JSON5 to INI.

01OF 04

Each nested object becomes its own section with a dotted name. An object named tls inside server becomes [server.tls].

It becomes a repeated key, once for each item. An empty list leaves nothing in the file.

No. Comments are dropped.

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

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