json_events 0.1.0 copy "json_events: ^0.1.0" to clipboard
json_events: ^0.1.0 copied to clipboard

A package for parsing large json files/objects. The package processes the json in a forward-only way and emits events based on the tokens it encounters.

json_events #

A package for parsing large json files/objects. The package processes the json in a forward-only way and emits events based on the tokens it encounters.

⚠️ Currently there is no support for encoding

Usage #

File file = File("./json.json");
Stream<JsonEvent> s = file
    .openRead()
    .transform(const Utf8Decoder())
    .transform(const JsonEventDecoder())
    .flatten();

await for (JsonEvent je in s) {
print("Event Type: ${je.type.name} Value: ${je.value}");
}

Disclaimer #

8
likes
160
points
578
downloads

Publisher

verified publisheraeb-dev.me

Weekly Downloads

A package for parsing large json files/objects. The package processes the json in a forward-only way and emits events based on the tokens it encounters.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on json_events