json_async 0.0.3 copy "json_async: ^0.0.3" to clipboard
json_async: ^0.0.3 copied to clipboard

outdated

Decode/Encode JSON asynchronously, in a long-running Isolate.

json_async #

Runs JSON encoding/decoding in a separate, long-running, isolate.

This is helpful when working with JSON frequently and the spawning/destruction or a new isolate (e.g. when used in via compute) creates too much overhead.

Example #

final String str = await jsonDecodeAsync('"ABC"');

final Map<String, int> map = await jsonDecodeAsyncMap<int>('{"0":1}');

final List<String> list = await jsonDecodeAsyncList<String>('["A","B"]');

All 3 calls will be run in sequentially a shared background isolate.

7
likes
0
pub points
66%
popularity

Publisher

unverified uploader

Decode/Encode JSON asynchronously, in a long-running Isolate.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

semaphore

More

Packages that depend on json_async