Object (map) decoding for TOON format.
Object (map) decoding for TOON format.
(object cursor depth delimiter strict list-item-fn)Decodes an object from key-value lines at the given depth.
Parameters:
Returns: [decoded-object, new-cursor]
Decodes an object from key-value lines at the given depth. Parameters: - cursor: LineCursor - depth: Expected depth for key-value lines - delimiter: Delimiter for parsing values - strict: Enable strict mode - list-item-fn: Function to decode list items (for dependency injection) Returns: [decoded-object, new-cursor]
(object-from-list-item line cursor depth delimiter strict list-item-fn)Decodes an object that starts on a list item line.
Format:
The first key-value is on the hyphen line. Remaining key-values are at depth+1.
Parameters:
Returns: [decoded-object, new-cursor]
Decodes an object that starts on a list item line.
Format:
- first-key: first-value
second-key: second-value
The first key-value is on the hyphen line.
Remaining key-values are at depth+1.
Parameters:
- line: ParsedLine with list marker
- cursor: LineCursor positioned at this line
- depth: Current list depth
- delimiter: Delimiter for parsing
- strict: Enable strict mode
- list-item-fn: Function to decode list items (for dependency injection)
Returns:
[decoded-object, new-cursor]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 |