GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Searching for packages
  • Package scoring and pub points
  • Using packages
  • Developing packages and plugins
  • Publishing a package
  • Using packages

This view

  • Original page
  • New address

GeezerVison is showing pub.dev — isolate_json | Dart package

isolate_json 2.1.0+1 copy "isolate_json: ^2.1.0+1" to clipboard
isolate_json: ^2.1.0+1 copied to clipboard

Published 5 years ago
SDKDartFlutter
PlatformAndroidiOSLinuxmacOSwebWindows
11
→

Metadata

Library for using a long-lived isolate for JSON encoding and decoding.

More...

  • Readme
  • Changelog
  • Example
  • Installing
  • Versions
  • Scores

Introduction #

This is a library for using a long-lived isolate to encode and decode JSONs.

When in a VM it uses isolates. This package is able to support web by falling back to encoding/decoding without isolates on web. This is so that an application using this package does not have to do that check itself.

Usage #

A simple usage example:

import 'package:isolate_json/isolate_json.dart';

Future<void> main() async {
  await JsonIsolate().startIsolate();

  final json = '{"name":"John", "age":30, "car":null}';
  final output1 = await JsonIsolate().decodeJson(json);

  final output2 = await JsonIsolate().encodeJson({
    'jsonData': true,
  });

  final output3 = await JsonIsolate().encodeJson([1, 2, 3]);

  print(output1);
  print(output2);
  print(output3);

  JsonIsolate().dispose();
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

11
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Metadata

Library for using a long-lived isolate for JSON encoding and decoding.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

More

Packages that depend on isolate_json

← Metadata

11
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Metadata

Library for using a long-lived isolate for JSON encoding and decoding.

Repository (GitHub)
View/report issues

License

GPL-3.0 (license)

More

Packages that depend on isolate_json

Back

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.