Konverter TOML ke JSON

Butuh konversi sebaliknya?
JSON to TOML Converter

Input TOML

1

Output JSON

Masukkan data TOML untuk dikonversi menjadi JSON

Data hasil konversi akan muncul di sini

Cara mengonversi TOML ke JSON

  1. Langkah 1 – Tempel konfigurasi TOML

    • Tempel pasangan key-value TOML, [sections], atau [[array_tables]] ke editor.
    • Nilai bisa berupa string, angka, boolean, array, atau tanggal.
    • Anda juga dapat mengimpor file .toml dari komputer.
  2. Langkah 2 – Periksa JSON

    • Alat mengubah semantik TOML menjadi object JSON yang valid.
    • Tanggal (RFC 3339) dipertahankan sebagai string, dan tipe dipertahankan bila memungkinkan.
    • Pastikan struktur tabel direpresentasikan sebagai properti JSON bersarang.
  3. Langkah 3 – Ekspor output

    • Salin JSON untuk dipakai di aplikasi JavaScript/TypeScript.
    • Unduh sebagai file .json untuk migrasi data atau penggunaan API.
Example: TOML to JSON
# Input TOML
title = "TOML Example"

[owner]
name = "Tom Preston-Werner"

// Output JSON
{
  "title": "TOML Example",
  "owner": {
    "name": "Tom Preston-Werner"
  }
}

Related tools

Pertanyaan yang Sering Diajukan

What is TOML format?

TOML (Tom's Obvious Minimal Language) is a configuration file format that's easy to read due to obvious semantics. It's designed to map unambiguously to a hash table.

How are TOML sections converted?

TOML sections [section] become nested JSON objects. Dotted keys like 'database.host' create nested structures automatically.

What TOML features are supported?

The converter supports strings, numbers, booleans, arrays, inline tables, nested sections, and basic date/time parsing. Complex multiline strings and advanced TOML features may have limited support.

Are array tables supported?

Yes. Array tables [[products]] are converted to JSON arrays containing objects, which is useful for representing repeated configuration blocks.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

Konverter TOML ke JSON | JSONSwiss