smalljson 1.0.0
smalljson: ^1.0.0 copied to clipboard
Transparently decode SmallJson-encoded API responses with a drop-in Dio interceptor. Pairs with the nylo/smalljson Laravel package.
Changelog #
1.0.0 — 2026-07-13 #
Initial release.
SmallJsonInterceptorfor Dio: advertises support viaX-Small-Json, decodesapplication/vnd.smalljson+jsonresponses in place (including error responses), rewrites the content type back toapplication/json, and surfaces corrupt envelopes asDioExceptions.SmallJsonCodecimplementing SmallJson wire format v1: packed mode everywhere, deflate mode ondart:ioplatforms (web advertises packed-only automatically).- Strict envelope validation with typed exceptions.
- Cross-implementation test vectors shared with the
nylo/smalljsonLaravel package, verified in both directions.