Introduction
NestedText is a text format for structured data that people can easily enter, edit
and read. A document is a nested collection of dictionaries, lists and strings. The
file name is free, but it is the tradition to use the suffix .nt, which
N-Triples files use as well.
Structure
Documents are UTF-8. Nesting is shown by indentation with spaces. Each line is a
comment, a blank, a list item, a dictionary item, a string item, a key item or a
one-line structure, and a tag such as - , : or
> at the start of a line sets its type. Lists and dictionaries can
also be written on one line in [ ] and { }. Lines starting
with # are comments. There is no quoting or escaping, and all leaf
values are strings.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the full line rules, multi-line keys, the limits of the one-line forms and the differences between versions.
- Viewer: the site has no viewer for this format.
Also used for
- RDF N-Triples – RDF graphs as one triple to a line.
Links
Developers
- NestedText – the project’s site and documentation
Reference
- Language reference – the rules of the format
- Basic syntax – introduction to the language, version 3.6