Skip to content

llamadonica/dart-json-stream-parser

Repository files navigation

json_stream_parser

Build Status Coverage Status

A library for processing streams of json. Unlike the built-in parser, it can process JSON as tokens are processed, giving better intermediate results, especially for long-running queries or large files.

It can be used both on server- and client-side.

Usage

A simple usage example:

import 'package:json_stream_parser/json_stream_parser.dart';

main() {
  final file = new File('file.json');
  Stream<JsonStreamingEvent> inputStream =
    file.openRead()
    .expand((t) => t)
    .transform(jsonStreamingTransformation);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

platform-agnostic Json stream parser for Dart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published