Search packages, repositories and app categories

Package detailsv2.2.0

simple_json

Simple way to dynamically convert from and to JSON using build-time generators given a type.

macOSWindowsLinux
30-day downloads
106
Likes
21
Pub points
120

Install package

flutter pub add simple_json

Package Overview

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

Simple_JSON is a Flutter/Dart package that simplifies dynamic JSON serialization and deserialization using build-time code generation. It allows developers to convert Dart objects to and from JSON efficiently by generating the necessary code at compile time, reducing runtime overhead. The package integrates seamlessly with Flutter projects and supports cross-platform development on macOS, Windows, and Linux. It is ideal for applications requiring fast, type-safe JSON handling without manual boilerplate.

Use cases

  • Dynamic JSON parsing in APIs
  • Efficient data model serialization
  • Reducing boilerplate in data classes
  • Cross-platform app data handling
  • Real-time data exchange in mobile apps

Key features

  • Build-time code generation
  • Type-safe JSON conversion
  • Minimal runtime overhead
  • Supports nested objects
  • Easy integration with Flutter

Suitable for

  • Flutter developers
  • API-driven applications
  • Data-heavy mobile apps
  • Teams prioritizing performance
  • Projects needing clean, maintainable code

Considerations

  • Requires build-time setup
  • Limited to generated types
  • Not suitable for runtime type changes
  • Needs proper dependency configuration
  • May increase build time slightly

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Provides source_gen Generators to create code for JSON serialization and de-serialization.

simple_json

The core package providing Generators for JSON-specific tasks.

Import it into your pubspec dev_dependencies: section.

simple_json_mapper

The package providing serialization helpers and annotations.

Import it into your pubspec dependencies: section.

Categories

Dependencies

Dependency list 8 items

Source repository

Projects using this package

No data available yet.