Skip to content
All references

Data reference

TOML & INI Configuration Conversion

Understand configuration types, sections, dates and unsupported values when converting TOML or INI to JSON.

8 of 8 entries

TOML

A TOML document needs a table root

name = "Example"
[server]
port = 8080

JSON-to-TOML export requires an object at the root. A root array or primitive has no equivalent document-level table.

TOML

Null must be resolved explicitly

{"optional": null} → choose removal or a replacement first

TOML has no null value. The converter rejects null rather than omitting a key silently; decide what absence means to the receiving application.

Numbers

Quoted identifiers retain digits

account = "9007199254740993"

Quote identifiers and exact large integers when crossing JSON tooling that uses JavaScript numbers. The converter rejects unsafe integer values instead of rounding them.

Dates

Dates become strings in JSON

created = 2026-11-16T09:30:00.123456789+02:00

JSON has no date type. TOML date/time values become ISO text while retaining their local or offset form and up to nanosecond precision. A JSON string remains quoted text on TOML export.

INI

INI values stay strings

port=8080
active=true

The INI converter preserves these as the strings 8080 and true. It does not guess numbers or booleans from their appearance.

INI

Section names are one level

[server]
host=localhost

The supported subset uses one-level named sections. Dots in section names are literal characters, rather than a request to create nested JSON objects.

INI

Comments depend on the dialect

# full-line comment
path=assets;archive

Full-line # and semicolon comments are ignored. Inline characters remain part of the value in this converter. Other applications can interpret those characters differently.

Review

Configuration conversion changes presentation

source with comments → typed data → reformatted document

Comments, layout and lexical number formatting are not retained. Verify the destination application's schema and INI dialect before replacing a working configuration.