json_guard 2.0.0 copy "json_guard: ^2.0.0" to clipboard
json_guard: ^2.0.0 copied to clipboard

A library for validating, transforming, and parsing JSON data. It provides a type-safe approach to working with JSON without requiring code generation or reflection.

2.0.0 #

RegExp fields #

  • Added pattern fields with the Field.pattern() method to convert JSON strings to RegExp objects
  • Added support for anchored patterns with the full flag to automatically add ^ and $ if not present

Map fields #

  • Added support for map fields with the map() method on FieldBuilder
  • Added Field.map() factory method for creating map fields
  • Added map() method to Schema class for processing maps of JSON objects
  • Renamed many() to list() for consistency with map() field types

Proper casting #

  • Improved type casting for all field types to allow for more flexible JSON parsing

1.0.0 #

  • Initial version.
2
likes
160
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A library for validating, transforming, and parsing JSON data. It provides a type-safe approach to working with JSON without requiring code generation or reflection.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on json_guard