Package versions and protocol versions are different. Published package scope: runtime DevOp.Toon 0.3.0, Core 0.2.0, API 0.2.0, and Client 0.2.0. Runtime 0.3.0 supports these protocol selections:
| TOON protocol | ToonProtocolVersion |
Write / serialize | Read / deserialize |
|---|---|---|---|
| Official 3.0 | V3_0 |
Yes | Yes |
| Official 4.0 | V4_0 |
Yes | Yes |
| Official 4.1 | V4_1 |
Yes | Yes |
| Official 4.2 | V4_2 |
Yes | Yes |
| Official 4.3 | V4_3 |
Yes | Yes |
| Official 4.4 | V4_4 |
Yes — default | Yes |
| Legacy custom | CustomLegacy |
Yes | Yes |
| Custom 4.4 | CustomV4_4 |
Yes | Yes |
| Automatic detection | Auto |
No | Yes — default; ambiguous input requires a hint |
The official 3.0 entry means 3.0, not all 3.x releases. Pinned fixture provenance is 3.0.0, 4.0.0, 4.1.3, 4.2.1, 4.3.0, and 4.4.0. These fixture tags identify the checked-in specification test inputs; they are not NuGet versions or a promise of support for every release in a major series.
Runtime, Core, and Client target .NET Standard 2.0 and .NET 8, 9, and 10. API targets .NET 8 and 10. Framework targets are independent of the TOON wire protocol.
Select the enum when serializing. Supply it when decoding known legacy or ambiguous input. Custom formats require compatible readers at both ends. Version selection and migration guide · Pinned fixture provenance.
TOON is worth evaluating when JSON payload size matters and the data shape is structured enough to benefit from a more compact representation.
DevOp.Toon is worth evaluating for its custom columnar row layout and the integration around it: a contracts-only model package, a reusable serialization service, MVC formatters, and a typed HTTP client. Rows with nested collections can share scalar columns while keeping their complex values beneath the corresponding row.
Supported typed decode paths materialize DTOs, records, collections, and dictionaries without a JSON-string intermediate. Pooled buffers, cached CLR metadata, and source-backed line ranges are part of the implementation's performance design. Benchmark the shapes you actually send to determine their practical benefit.
The custom format requires a compatible decoder. Its omission options can intentionally remove null/empty data; turn them off when those values must be preserved. Official 4.0–4.4 version selection and the new custom mode are available in the version scope below.
Version scope: Core 0.2.0, runtime 0.3.0, API 0.2.0, and Client 0.2.0.
Encoding defaults to official 4.4. Supply ToonEncodeOptions.ProtocolVersion with a concrete ToonProtocolVersion: V3_0, V4_0 through V4_4, CustomLegacy, or CustomV4_4. Decoding defaults to Auto; ambiguous version-dependent input needs an explicit ToonDecodeOptions.ProtocolVersion. Auto cannot be used for encoding or as a transport version.
Select CustomLegacy to retain the earlier custom wire profile. CustomV4_4 combines nested header groups with row/keyed spills. Custom profiles require compatible readers at both ends and default IgnoreNullOrEmpty and ExcludeEmptyArrays to true. Official profiles default both to false. Set both explicitly false when preserving null, empty-string, and empty-array distinctions matters. Explicit option overrides remain effective when changing versions. Columnar requires a custom protocol selection.
Encoder options and runtime DI encoding default to one-space indentation; decoder options default to two spaces. With explicit decode options, match the producer’s indentation or detect options using the supplied version hint. API registration aligns both widths at two spaces. Byte sequences default to Base64 strings; numeric-array output is an explicit policy choice.
See the November 2026 runtime 0.3.0 benchmark section for the current package measurements and the product benchmark source report for profiles and methodology. The April 2026 numbers below remain historical evidence.
The numbers below are the recorded April 2026 comparison against System.Text.Json. They are preserved as historical evidence, not presented as a new benchmark run, a protocol-upgrade validation. File sizes and serializer measurements use different scenarios; do not combine their percentages into a universal claim.
Omission policy, input-file formatting/encoding, and compression settings affect size comparisons. Compare equal represented data and record CPU time, allocations, and compressed bytes as well as raw size.
Historical benchmarks (.NET 10.0.6, April 2026, 1,000 items, 15 warm iterations):
Speed:
That is the core value proposition: less data to move, less data to store, and better efficiency on real structured business payloads.
Benchmarked on .NET 10.0.6, 1,000 items per dataset.
| Dataset | JSON bytes | TOON bytes | Raw saved | Gzip saved | Brotli saved | JSON enc ms | TOON enc ms | JSON dec ms | TOON dec ms |
|---|---|---|---|---|---|---|---|---|---|
| Flat Orders | 151,066 | 55,142 | 63.5% | 15.7% | 7.7% | 0.794 | 2.026 | — | — |
| Catalog | 283,047 | 257,070 | 9.2% | 6.9% | 11.7% | 1.957 | 5.202 | — | — |
| Products | 2,878,419 | 1,253,844 | 56.4% | 14.6% | 9.0% | 36.550 | 18.050 | 35.626 | 35.049 |
| Warehouses | 849,281 | 200,114 | 76.4% | 20.1% | 20.0% | 2.051 | 2.350 | 3.630 | 2.997 |
| Change Fields | 300,822 | 176,965 | 41.2% | 7.4% | 4.0% | 0.718 | 0.838 | 1.676 | 0.854 |
| Configuration | 15,366 | 9,299 | 39.5% | 4.4% | 5.2% | 0.059 | 0.068 | — | — |
prods.json vs prods.toon2,051 actual products encoded to disk, decoded from disk, then re-encoded.
| JSON | TOON | Saved / Speedup | |
|---|---|---|---|
| Raw bytes | 11,520,246 | 2,568,353 | 77.7% |
| Gzip bytes | 421,934 | 354,875 | 15.9% |
| Brotli bytes | 274,797 | 246,025 | 10.5% |
| Avg decode (ms) | 26.1 | 18.6 | 1.40× |
| Avg encode (ms) | 16.2 | 18.0 | 0.90× |
In-process ASP.NET Core measurement, 12 warm iterations.
| Dataset | JSON (ms) | TOON (ms) | Delta | Raw saved | Gzip saved |
|---|---|---|---|---|---|
| Catalog | 12.369 | 11.628 | −0.741 ms | 56.3% | 14.5% |
| Products | 11.396 | 10.827 | −0.569 ms | 56.3% | 14.5% |
TOON is especially compelling when payloads include:
These are common enterprise shapes, not edge cases.
TOON should be positioned as a strong fit for the right workloads, not as a universal replacement story.
Strongest claim: TOON materially reduces payload size on repeated-row and nested collection data, and this package gives .NET teams a production-friendly way to adopt it.
Important caveats:
catalog data (9.2% raw saving) shows that not every nested shape is a strong fit.DevOp.Toon is the package that turns TOON from an idea into an application integration:
ToonNode or strongly typed modelsSource usage reference: DevOp.Toon README.