smalljson 1.0.0 copy "smalljson: ^1.0.0" to clipboard
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.

  • SmallJsonInterceptor for Dio: advertises support via X-Small-Json, decodes application/vnd.smalljson+json responses in place (including error responses), rewrites the content type back to application/json, and surfaces corrupt envelopes as DioExceptions.
  • SmallJsonCodec implementing SmallJson wire format v1: packed mode everywhere, deflate mode on dart:io platforms (web advertises packed-only automatically).
  • Strict envelope validation with typed exceptions.
  • Cross-implementation test vectors shared with the nylo/smalljson Laravel package, verified in both directions.
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publishernylo.dev

Weekly Downloads

Transparently decode SmallJson-encoded API responses with a drop-in Dio interceptor. Pairs with the nylo/smalljson Laravel package.

Repository (GitHub)
View/report issues

Topics

#dio #json #compression #network #interceptor

License

MIT (license)

Dependencies

dio

More

Packages that depend on smalljson