Liking cljdoc? Tell your friends :D

com.vadelabs.toon.encode.arrays

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 arrays
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 arrays
raw docstring

com.vadelabs.toon.encode.encoders

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
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
raw docstring

com.vadelabs.toon.encode.keys

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.
raw docstring

com.vadelabs.toon.encode.normalize

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
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
raw docstring

com.vadelabs.toon.encode.primitives

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.
raw docstring

com.vadelabs.toon.encode.writer

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)
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)
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close