json_shield 0.1.0 copy "json_shield: ^0.1.0" to clipboard
json_shield: ^0.1.0 copied to clipboard

Dependency-free JSON decoding guard for fromJson-style models. Shape checks, typed exceptions with cause and trace, full-traversal list decoding with aggregated failures, redacted-by-default payloads.

0.1.0 #

Initial release.

  • guard.decode<T> — single JSON object decoding with shape guards and exception wrapping (cause, causeTrace, optional context label).
  • guard.decodeList<T> — full-traversal array decoding; every element failure is collected and thrown at once as DecodeListException.
  • guard.verbose — opt-in diagnostics: raw payload attachment plus console logging of every failure at exception escape points; redacted and silent by default.
  • Zero dependencies, pure Dart.
1
likes
150
points
81
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dependency-free JSON decoding guard for fromJson-style models. Shape checks, typed exceptions with cause and trace, full-traversal list decoding with aggregated failures, redacted-by-default payloads.

Repository (GitHub)

License

MIT (license)

More

Packages that depend on json_shield