json_guard 2.0.0
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
fullflag to automatically add ^ and $ if not present
Map fields #
- Added support for map fields with the
map()method onFieldBuilder - Added
Field.map()factory method for creating map fields - Added
map()method toSchemaclass for processing maps of JSON objects - Renamed
many()tolist()for consistency withmap()field types
Proper casting #
- Improved type casting for all field types to allow for more flexible JSON parsing
1.0.0 #
- Initial version.