an indentation-based data serialization format with the same data model as json. designed for configuration files and other human-edited structured data. whitespace separates keys and values, indentation defines nesting, and a colon marks arrays.
example:
name "example"
enabled true
server
host "localhost"
port 8080
paths: "/home" "/backup"
excludes:
"/.git/"
"/node_modules/"
users:
.
name "alice"
enabled true
.
name "bob"
enabled false
matrix:
: 1 2 3
: 4 5 6syntax:
the root object is implicit. a root array is introduced by a colon, a root scalar by a period followed by its value, and an empty root object by a period on its own.
indentation uses spaces and defaults to a width of two. indentation depth is calculated by dividing the number of leading spaces by the indentation width and rounding up. the width can be configured externally. indentation may increase by at most one level at a time and decrease by any number of levels.
duplicate object keys, invalid literals, invalid nesting and empty documents are invalid.
benefits
drawbacks