feat!: remove optional length marker option [#N] in favor of [N]

This commit is contained in:
Johann Schopplich
2025-11-10 17:28:49 +01:00
parent 1c74f09177
commit e8ae024e54
16 changed files with 38 additions and 109 deletions

View File

@@ -62,7 +62,6 @@ cat data.toon | toon --decode
| `-d, --decode` | Force decode mode (overrides auto-detection) |
| `--delimiter <char>` | Array delimiter: `,` (comma), `\t` (tab), `\|` (pipe) |
| `--indent <number>` | Indentation size (default: `2`) |
| `--length-marker` | Add `#` prefix to array lengths (e.g., `items[#3]`) |
| `--stats` | Show token count estimates and savings (encode only) |
| `--no-strict` | Disable strict validation when decoding |
| `--key-folding <mode>` | Enable key folding: `off`, `safe` (default: `off`) |
@@ -122,7 +121,7 @@ cat large-dataset.json | toon --delimiter "\t" > output.toon
jq '.results' data.json | toon > filtered.toon
```
### Key Folding (spec v1.5)
### Key Folding (Since v1.5)
Collapse nested wrapper chains to reduce tokens: