v2.1.1
yet_another_json_isolate
通过为每个实例保持一个隔离运行,简化并改进隔离中的 JSON 解析的包。
15喜欢 107万近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
supabase-community/json-isolate-dart open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
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.
// 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();