google/json_serializable.dart
Generates utilities to aid in serializing to/from JSON. observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 27.0
- age_days: 3333
- days_rel: 34
- days_push: 30
- n_releases_24m: 23
Adoption not part of the score
1618 stars · 462 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Dart package that generates JSON serialization and deserialization code for Dart classes via annotations like @JsonSerializable and @JsonKey, using the Dart Build System (build_runner). It also includes _annotation for annotations, checked_yaml for better YAML decoding errors, and JsonLiteral/JsonEnum support.
Use cases
- generate fromJson/toJson code for Dart classes
- serialize and deserialize models to JSON in Flutter apps
- customize JSON field names and defaults with annotations
- generate JSON Schema from Dart classes
- handle enum serialization to JSON values
- load JSON files as Dart literals at build time
- decode YAML with helpful error messages
When to avoid
- your project is not Dart/Flutter
- you prefer runtime reflection-based serialization
- you need serialization formats other than JSON/YAML
- you cannot use build_runner code generation in your workflow
Facets
library · maturity active
serialization parser developer-tools developer-tools web-development mobile-development cross-platform cross-platform cli dart flutter codegen build-runner source-gen -annotation -schema mobile web-server
10 sources
- readme: https://github.com/google/json_serializable.dart · fetched 2026-08-28 · 6f340cf9e288
- homepage: https://pub.dev/packages/json_serializable · fetched 2026-08-29 · d3cb6564c90e
- site_page: https://pub.dev/packages/json_serializable/install · fetched 2026-08-29 · d43b86813d58
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonSerializable-class.html · fetched 2026-08-29 · 81d28bdf1a1c
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonKey-class.html · fetched 2026-08-29 · 158b2cc64bd7
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonLiteral-class.html · fetched 2026-08-29 · a83804cfe970
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonEnum-class.html · fetched 2026-08-29 · de3091287c61
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonValue-class.html · fetched 2026-08-29 · e3586c9c5209
- site_page: https://pub.dev/documentation/json_annotation/4.12.0/json_annotation/JsonEnum/valueField.html · fetched 2026-08-29 · ea306198e9c7
- site_page: https://pub.dev/packages/json_serializable/changelog · fetched 2026-08-29 · ba14ff896619
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| google/json_serializable.dart | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="google/json_serializable.dart")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem