Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributejson2yaml

Converts JSON maps to YAML strings with beautification and pubspec conventions.

pub.devRemove
pubspec_parse

Parse pubspec.yaml files with a type‑safe API and detailed error reporting.

pub.devRemove
ScoresHealth5093 (best)
Maintenance094 (best)
Quality100100
Popularity5589 (best)
Community4680 (best)
Compatibility100100
UsageDownloads (30 days)98k17M (best)
Likes1260 (best)
Pub points160 / 160160 / 160
GitHub stars16123 (best)
MaintenanceLatest release3.0.1, 4 years ago1.7.0, 4 weeks ago (best)
Major versions in 12 months00
Contributors2100+ (best)
Publisherdart-borg.devtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies1 (best)5
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Accurate handling of nested JSON structures
  • Built‑in beautifier for readable output
  • Dedicated pubspec.yaml and pubspec.lock formatting styles
  • Simple API: single function call
  • Typed API for all pubspec fields
  • Rich, precise error messages via checked_yaml
  • Supports latest Dart pubspec features (git tag_pattern, falseSecrets, hooks, platforms)
  • Lenient mode to ignore unknown keys
Weaknesses
  • No word wrapping for long strings
  • Limited formatting options beyond the three styles
  • Not a full YAML parser/serializer
  • Specialized to pubspec files only, not a general YAML library
  • No code‑generation support
  • Adds another dependency if you already use a generic YAML parser
WarningsNoneNone
json2yaml vs pubspec_parse: which Flutter package should you use? | pubscout