FLUTTER ECOSYSTEM

json2yaml

Dart package to render JSON data to YAML with built-in automatic beautifier and support for Dart pubspec.yaml and pubspec.lock conventions

Latest version
3.0.1
30-day downloads
79.7K
Likes
12
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A Dart package that converts JSON data into YAML format with automatic formatting. It supports conventions used in Dart's pubspec.yaml and pubspec.lock files, making it ideal for configuration and dependency management tasks. The package ensures clean, readable output and integrates seamlessly into Flutter and Dart projects across multiple platforms.

Use cases
  • Converting JSON configurations to YAML
  • Generating pubspec.yaml files
  • Parsing and rendering dependency manifests
  • Automating configuration file generation
  • Synchronizing data between JSON and YAML formats
Key features
  • Automatic beautification of YAML output
  • Support for pubspec.yaml and pubspec.lock conventions
  • Simple integration via flutter pub add
  • Cross-platform compatibility
  • Lightweight and efficient parsing
  • Preserves data structure integrity
Suitable for
  • Dart and Flutter developers
  • CI/CD pipeline automation
  • Configuration management
  • Tooling and code generation scripts
  • Projects requiring JSON-to-YAML conversion
Considerations
  • Limited to basic YAML formatting
  • No schema validation
  • Not designed for complex YAML features like anchors or aliases
  • Dependent on input JSON validity
  • May not support all edge cases in nested structures
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add json2yaml

Categories

Dependencies

Dependency list 1 items

Source repository

Related projects