Understanding TOON Strict Mode
mainBy default, the decoder validates input strictly. Strict mode checks for:
- Invalid escape sequences: Throws on
"\x", unterminated strings - Syntax errors: Throws on missing colons, malformed headers
- Array length mismatches: Throws when declared length doesn't match actual count
- Delimiter mismatches: Throws when row delimiters don't match header
Set strict=False in DecodeOptions to allow lenient parsing.