Online TOML to JSON converter
Convert TOML to JSON or JSON to TOML right here on this page (toml2json or json2toml). The source code is on GitHub.
TOML
Loading editor...
# This is a TOML document. title = "ImpalaPay Co." [owner] name = "Impala Co." establishment="" [database] server = "192.168.1.1" ports = [ 8000, 8001, 8002 ] connection_max = 5000 enabled = true [servers] # Indentation (tabs and/or spaces) is allowed but not required [servers.alpha] ip = "10.0.0.1" dc = "eqdc10" [servers.beta] ip = "10.0.0.2" dc = "eqdc10" [clients] data = [ ["gamma", "delta"], [1, 2] ] # Line breaks are OK when inside arrays hosts = [ "alpha", "omega" ]
JSON
Loading editor...
{
"title": "ImpalaPay Co.",
"owner": {
"name": "Impala Co.",
"establishment": ""
},
"database": {
"server": "192.168.1.1",
"ports": [
8000,
8001,
8002
],
"connection_max": 5000,
"enabled": true
},
"servers": {
"alpha": {
"ip": "10.0.0.1",
"dc": "eqdc10"
},
"beta": {
"ip": "10.0.0.2",
"dc": "eqdc10"
}
},
"clients": {
"data": [
[
"gamma",
"delta"
],
[
1,
2
]
],
"hosts": [
"alpha",
"omega"
]
}
}