json_shield 0.1.0
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, optionalcontextlabel).guard.decodeList<T>— full-traversal array decoding; every element failure is collected and thrown at once asDecodeListException.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.