NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev, #203 most downloaded on pub.dev
Automatically generate code for converting to and from JSON by annotating Dart classes.
Latest stable
6.15.2
Last release 1 months ago
20 Oct 2026
Ships fairly regularly
a new release about every 6 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
124 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
BREAKING Types are now segmented into their own libraries.
BREAKING Types are now segmented into their own libraries.
package:json_serializable/generators.dart contains Generator
implementations.
package:json_serializable/annotations.dart contains annotations. This
library should be imported with your target classes.
package:json_serializable/type_helpers.dart contains TypeHelper classes
and related helpers which allow custom generation for specific types.
BREAKING Generation fails for types that are not a JSON primitive or that do not explicitly support JSON serialization.
BREAKING TypeHelper:
Removed can methods. Return null from (de)serialize if the provided
type is not supported.
Added (de)serializeNested arguments to (de)serialize methods allowing
generic types. This is how support for Iterable, List, and Map is
implemented.
BREAKING JsonKey.jsonName was renamed to name and is now a named
parameter.
Added support for optional, non-nullable fields.
Added support for excluding null values when generating JSON.
Eliminated all implicit casts in generated code. These would end up being runtime checks in most cases.
Provide a helpful error when generation fails due to undefined types.
When serializing classes that implement their own fromJson constructor, honor their constructor parameter type.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fromJson constructor,
honor their constructor parameter type.Add /* unsafe */ comments to generated output likely to be unsafe.
Split off from source_gen.
Add /* unsafe */ comments to generated output likely to be unsafe.
Support (de)serializing values in Map.
Fix ordering of fields when they are initialized via constructor.
Don't use static members when calculating fields to (de)serialize.
- Fix homepage in pubspec.yaml.
pubspec.yaml.One column per quarter.