Search packages, repositories and app categories

Package detailsv2.1.1

yet_another_json_isolate

Package to simplify and improve JSON parsing in isolates by keeping one isolate running per instance.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.3M
Likes
15
Pub points
140

Install package

flutter pub add yet_another_json_isolate

Package Overview

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

Yet Another JSON Isolate is a Dart package designed to streamline JSON parsing within isolates by maintaining a single, persistent isolate per instance. It reduces overhead and improves performance by reusing the isolate instead of creating new ones for each parsing task. Ideal for applications requiring frequent or heavy JSON processing without blocking the main thread, it ensures efficient, safe, and scalable data handling across multiple platforms.

Use cases

  • Parsing large JSON files in background
  • Processing JSON data from APIs asynchronously
  • Improving app responsiveness during heavy data operations
  • Handling repeated JSON transformations
  • Running JSON tasks in parallel without isolate churn

Key features

  • Single isolate per instance
  • Automatic reuse of isolates
  • Simplified API for JSON parsing
  • Cross-platform support
  • Thread-safe JSON operations
  • Low memory overhead

Suitable for

  • Apps with high-frequency JSON processing
  • Developers seeking isolate efficiency
  • Performance-critical data pipelines
  • Multi-platform Flutter apps
  • Teams prioritizing maintainable async code

Considerations

  • Requires careful management of isolate lifecycle
  • Not ideal for one-off JSON tasks
  • May increase memory usage if many instances are active
  • Limited to JSON-specific operations
  • Best suited for long-running or repeated parsing scenarios

Original README

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

Yet Another Json Isolate

Warning This repository has been moved to the supabase-flutter repo.

Dart package for simple JSON parsing using isolates, because the world can never have enough JSON parsers.

Usage

// initialize an `YAJsonIsolate` instance
final isolate = YAJsonIsolate()..initialize();

// serialize a JSON using an isolate
final requestBody = await isolate.encode(requestObject);

// deserialize a JSON string using an isolate
final json = await isolate.decode(responseBody);

// dispose when no longer needed
isolate.dispose();

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.