Array decoding for TOON format.
Handles inline, tabular, and list array formats.
Array decoding for TOON format. Handles inline, tabular, and list array formats.
Root dispatchers for TOON format decoding.
This namespace provides the main entry points for decoding TOON content, dispatching to specialized decoders for arrays, objects, and primitives.
Root dispatchers for TOON format decoding. This namespace provides the main entry points for decoding TOON content, dispatching to specialized decoders for arrays, objects, and primitives.
Event-based streaming decoder for TOON format.
Processes TOON lines and emits parse events instead of building complete value trees. Enables memory-efficient processing of large documents.
Event-based streaming decoder for TOON format. Processes TOON lines and emits parse events instead of building complete value trees. Enables memory-efficient processing of large documents.
Event types and utilities for streaming TOON decode.
Events are simple maps with a :type key. Prefer using maps directly:
{:type :start-object} {:type :end-object} {:type :start-array :length 3} {:type :end-array} {:type :key :key "field-name"} {:type :key :key "field-name" :was-quoted true} {:type :primitive :value <value>}
This enables memory-efficient processing of large TOON documents.
Event types and utilities for streaming TOON decode.
Events are simple maps with a :type key. Prefer using maps directly:
{:type :start-object}
{:type :end-object}
{:type :start-array :length 3}
{:type :end-array}
{:type :key :key "field-name"}
{:type :key :key "field-name" :was-quoted true}
{:type :primitive :value <value>}
This enables memory-efficient processing of large TOON documents.List item type detection and decoding for TOON format.
List item type detection and decoding for TOON format.
Key manipulation utilities for TOON decoding.
Provides functions to expand dotted keys into nested objects.
Key manipulation utilities for TOON decoding. Provides functions to expand dotted keys into nested objects.
Object (map) decoding for TOON format.
Object (map) decoding for TOON format.
Token parsing functions for TOON format.
Parses array headers, delimited values, primitive tokens, and keys.
Token parsing functions for TOON format. Parses array headers, delimited values, primitive tokens, and keys.
Line scanning and parsing for TOON format.
Converts TOON text into structured line objects with depth tracking. Provides cursor-based navigation for parsing.
Line scanning and parsing for TOON format. Converts TOON text into structured line objects with depth tracking. Provides cursor-based navigation for parsing.
Streaming decoder for TOON format.
Provides memory-efficient event-based decoding for large TOON documents. Instead of building complete value trees, emits parse events that can be consumed incrementally.
Streaming decoder for TOON format. Provides memory-efficient event-based decoding for large TOON documents. Instead of building complete value trees, emits parse events that can be consumed incrementally.
Reconstructs values from event streams.
Provides functions to build complete value trees from parse events, enabling reconstruction of the original data structure after streaming decode.
Reconstructs values from event streams. Provides functions to build complete value trees from parse events, enabling reconstruction of the original data structure after streaming decode.
Array encoding for TOON format.
Handles encoding of vectors with support for:
Array encoding for TOON format.
Handles encoding of vectors with support for:
- Inline primitive arrays (key[N]: val1,val2,val3)
- Tabular arrays of objects (key[N]{col1,col2}: ...)
- Nested arrays of arraysObject (map) encoding for TOON format.
Handles encoding of maps with:
Object (map) encoding for TOON format. Handles encoding of maps with: - Simple key-value pairs - Nested objects with indentation - Arrays as values - Key collapsing for nested single-key objects
Key manipulation utilities for TOON encoding.
Provides functions to collapse nested single-key objects into dotted paths.
Key manipulation utilities for TOON encoding. Provides functions to collapse nested single-key objects into dotted paths.
Data normalization for TOON encoding.
Converts Clojure data structures to JSON-compatible values:
Data normalization for TOON encoding. Converts Clojure data structures to JSON-compatible values: - Keywords → strings - Symbols → strings - Sets → vectors - Maps with keyword keys → maps with string keys - UUIDs → strings - Dates/Instants → ISO-8601 strings - NaN/Infinity → nil - Functions/vars → nil
Primitive value encoding for TOON format.
Handles encoding of nil, booleans, numbers, and strings.
Primitive value encoding for TOON format. Handles encoding of nil, booleans, numbers, and strings.
Line writer for managing indented TOON output.
The LineWriter handles:
Line writer for managing indented TOON output. The LineWriter handles: - Indentation management (configurable spaces per level) - Line accumulation - Whitespace invariants (no trailing spaces or newlines)
Utility functions for TOON encoding and decoding.
Provides:
Utility functions for TOON encoding and decoding. Provides: - String search and parsing utilities - String escaping/unescaping - Value and key quoting logic
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |