Expand description
Concrete syntax tree of a JSON5 document.
Every byte of the source is owned by exactly one node, so printing the tree
returns the source unchanged. The document stores its Dialect because
the comma rule and the spelling of new keys depend on it, and that keeps
to_string the one way to emit.
Modulesยง
- array ๐
- Arrays of the JSON syntax tree.
- key ๐
- Object keys of the JSON syntax tree.
- object ๐
- Objects of the JSON syntax tree and their member edits.
- quote ๐
- Quoted string spellings.
- scalar ๐
- Literal tokens of the JSON syntax tree.
- tail ๐
- Commas and trailing trivia after elements.
- trivia ๐
- Whitespace, comments and indentation of the JSON syntax tree.
Structsยง
- Document ๐
- The root of a parsed or built document.
- Value ๐
- A value with the trivia that precedes it.
Enumsยง
- Kind ๐
- A container or a literal token.