json_serializer 0.3.1
json_serializer: ^0.3.1 copied to clipboard
A versatile Dart package for effortless JSON serialization and deserialization without the need for code generation or reflection.
Changelog #
All release notes for the json_serializer library will be documented on this page.
0.3.0 - 2025-12-10 #
Added #
- Naming Conventions API: Extensible system for conversion between different naming conventions (camelCase, snake_case, PascalCase, kebab-case, UPPERCASE, lowercase).
- Auto-detection of naming conventions in JSON objects.
- Built-in naming conventions:
CamelCaseConvention,SnakeCaseConvention,PascalCaseConvention,KebabCaseConvention,UpperCaseConvention,LowerCaseConvention. - Abstract class
NamingConventionfor creating custom conventions. - Support for Dart properties in different naming conventions (not just camelCase).
- Bidirectional conversion: JSON in any case ↔ Dart properties in any case.
namingConventionsandjsonNamingConventionproperties inJsonSerializerOptions.- Intelligent property name normalization algorithm.
Fixed #
- Issue #1: Support for tree-structured data with recursive nested objects.
- Issue #2: Automatic conversion between different naming conventions (snake_case, PascalCase, etc.).
- Parameter matching now works when Dart properties use different naming conventions than JSON.
Changed #
JsonSerializerOptionsnow accepts a list of naming conventions.GenericTypeConverterupdated to use the naming conventions system.- Property lookup algorithm improved with exact match first, then convention-based fallback.