ErrLookup › toon-format/toon

toon-format/toon

🎒 Token-Oriented Object Notation (TOON) – compact, human-readable serialization of JSON data for LLM prompts. TypeScript SDK, CLI, benchmarks. · TypeScript · 35 source files

Analyzed at 604eac266e on 2026-08-31. 42 documented errors.

Code / MessageTypeSeverityTags
Top-level document must start with a key-value or array-head
exception error toon, decoder, strict-mode, malformed-input
Indentation depth jump: expected depth ${parentDepth + 1}, b
exception error toon, decoder, strict-mode, indentation
Unexpected bare token line outside root primitive position
exception error toon, decoder, strict-mode, malformed-input
Unexpected content after the document root
exception error toon, decoder, strict-mode, trailing-content
Duplicate sibling key "${key}"
exception error toon, decoder, strict-mode, duplicate-key
Unexpected indentation inside keyed tabular object
exception error toon, decoder, strict-mode, indentation, tabular
Expected entry row inside keyed tabular object
exception error toon, decoder, strict-mode, tabular, malformed-row
Expected list item
exception error toon, decoder, list, truncated-input
Expected list item to start with "${LIST_ITEM_PREFIX}"
exception error toon, decoder, list, syntax
result.reason
exception error toon, decoder, strict-mode, array-header, syntax
result.strictError
exception error syntax, strict-mode, decoder, toon
error.message
exception error decoder, error-wrapping, toon
Object startObject event without preceding key
exception error event-stream, decoder, toon
Unexpected endObject event
exception error event-stream, decoder, toon
Mismatched endObject event
exception error event-stream, decoder, toon
Array startArray event without preceding key
exception error event-stream, decoder, toon
Unexpected endArray event
exception error event-stream, decoder, toon
Mismatched endArray event
exception error event-stream, decoder, toon
Key event outside of object context
exception error event-stream, decoder, toon
Primitive event without preceding key in object
exception error streaming, events, toon, decoder
Incomplete event stream: unclosed objects or arrays
exception error streaming, events, toon, truncation
No root value built from events
exception error streaming, events, toon, empty-input
Invalid array length: "${seg}" (expected non-negative intege
exception error syntax, toon, array-header, parser
Empty field name in field list
exception error syntax, toon, field-list, parser
Missing field name before nested field group
exception error syntax, toon, nested-fields, parser
Unmatched brace in field list
exception error syntax, toon, nested-fields, parser
Unexpected content after nested field group
exception error syntax, toon, nested-fields, parser
Unterminated string: missing closing quote
exception error syntax, toon, string, quoting
Unexpected characters after closing quote
exception error syntax, toon, string, quoting
Expected ${expected} ${itemType}, but got ${actual}
exception error toon, strict-mode, decode, validation
Expected ${expectedCount} list-form items, but found more
exception error toon, decode, validation, structure
Expected ${header.length} tabular rows, but found more
exception error toon, decode, validation, tabular
Blank lines inside ${context} are not allowed in strict mode
exception error toon, strict-mode, decode, formatting
Cannot encode ${context} containing an unpaired surrogate U+
exception error unicode, surrogate, encoding, toon
Raw string must not contain a line starting with "${COMMENT_
exception error encoder, raw-string, input-validation, comment-marker
Invalid escape sequence: backslash at end of string
exception error decoder, escape-sequence, syntax-error, string-parsing
Invalid escape sequence: truncated \u escape at "${value.sli
exception error decoder, escape-sequence, unicode, syntax-error
Invalid escape sequence: \u must be followed by 4 hex digits
exception error decoder, escape-sequence, unicode, hex
Invalid escape sequence: \u${hex} is a lone surrogate. Suppl
exception error decoder, unicode, surrogate, escape-sequence
Invalid escape sequence: \${next}
exception error decoder, escape-sequence, syntax-error, string-parsing
Invalid delimiter ${JSON.stringify(delimiter)}. Valid delimi
exception error configuration, options-validation, delimiter, typeerror
Over-indented line: expected depth ${expectedDepth}, but fou
exception error decoder, indentation, strict-mode, structure