TOML Syntax
Example
# This is a comment in a TOML document.
# Properties are set with the key on the left and the value on the right.
title = "TOML Example"
# Groups should be wrapped in []
[owner]
name = "Tom Preston-Werner"
dob = 1979-05-27T07:32:00-08:00 # First class dates
# Value type examples:
[database]
# String
server = "192.168.1.1"
# Array
ports = [ 8001, 8001, 8002 ]
# Number
connection_max = 5000
# Boolean
enabled = true
# Groups can also have nested groups.
[servers]
# Indentation (tabs and/or spaces) is recommended but not required
[servers.alpha]
ip = "10.0.0.1"
dc = "eqdc10"
# Nested groups must include the parent name as a prefix.
[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"
]Last updated