FLUTTER ECOSYSTEM

bson

Bson library for Dart. BSON is a binary-encoded serialization of JSON-like documents. The package allows also eJson and object serialization/deserialization.

Latest version
5.0.8
30-day downloads
96.8K
Likes
20
Pub points
140

Package Overview

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

Overview

The bson package provides BSON (Binary JSON) serialization and deserialization capabilities in Dart, enabling efficient storage and transmission of data. It supports not only standard BSON but also extended JSON (eJSON) and object serialization. Ideal for applications interfacing with MongoDB or requiring compact binary data formats, it works across all major platforms including web, mobile, and desktop. The library is lightweight and integrates seamlessly into Dart projects via pub.

Use cases
  • MongoDB integration
  • Binary data serialization
  • Cross-platform data exchange
  • Efficient data storage
  • Real-time data transfer
  • eJSON parsing
Key features
  • BSON encoding/decoding
  • eJSON support
  • Object serialization
  • Platform-agnostic
  • Lightweight
  • High performance
Suitable for
  • Dart developers using MongoDB
  • Apps needing compact data formats
  • Full-stack Dart applications
  • Data-heavy mobile or web apps
  • Backend services handling structured data
Considerations
  • Requires understanding of BSON format
  • Limited to structured data types
  • Not suitable for human-readable output
  • May need additional dependencies for full functionality
  • Performance depends on data size and complexity
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add bson

Categories

Dependencies

Dependency list 6 items

Source repository

Related projects

Rankings