Skip to main content

yet_another_json_isolate 3.0.0-dev.3 copy "yet_another_json_isolate: ^3.0.0-dev.3" to clipboard
yet_another_json_isolate: ^3.0.0-dev.3 copied to clipboard

JSON parsing off the main isolate, processing small payloads inline and large payloads on short lived isolates without copying results. Runs inline on web.

example/yet_another_json_isolate_example.dart

import 'package:yet_another_json_isolate/yet_another_json_isolate.dart';

void main() async {
  final isolate = YAJsonIsolate();

  final json = await isolate.decode('{"a": 1, "b": 2}');
  print(json);

  final jsonString = await isolate.encode(json);
  print(jsonString);
  await isolate.dispose();
}
15
likes
160
points
1.25M
downloads

Documentation

API reference

Publisher

verified publishersupabase.io

Weekly Downloads

JSON parsing off the main isolate, processing small payloads inline and large payloads on short lived isolates without copying results. Runs inline on web.

Homepage
Repository (GitHub)
View/report issues

Topics

#json #isolate #parsing #async

License

MIT (license)

Dependencies

meta

More

Packages that depend on yet_another_json_isolate