Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson_annotation

Provides annotations for json_serializable to generate JSON (de)serialization code.

pub.devRemove
json_object_mapper

Map plain Dart objects to and from JSON without annotations or code generation

pub.devRemove
ScoresHealth84 (best)39
Maintenance70 (best)0
Quality8196 (best)
Popularity97 (best)19
Community80 (best)6
Compatibility100100
UsageDownloads (30 days)16M (best)2.7k
Likes1.3k (best)6
Pub points150 / 160150 / 160
GitHub stars1.6k (best)3
MaintenanceLatest release4.12.0, 6 months ago (best)2.0.1, 6 years ago
Major versions in 12 months00
Contributors51 (best)1
Publishergoogle.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Small, zero‑runtime‑overhead package.
  • Works with Dart 3 and newer SDKs.
  • Provides fine‑grained control via JsonKey options.
  • Zero code generation, no build_runner
  • Works on web and native out of the box
  • Simple API, easy to learn
  • Small dependency footprint
Weaknesses
  • Requires a separate code‑gen step with build_runner and json_serializable.
  • Only useful when paired with a generator; on its own it does nothing.
  • No support for custom converters or complex nested types
  • Limited to simple POJOs, no immutability or validation
  • No type safety for JSON keys
WarningsNoneNone
json_annotation vs json_object_mapper: which Flutter package should you use? | pubscout