ndjson library

Ndjson support for Dart.

http://ndjson.org/.

Classes

NdjsonLine
Represents a ndjson line. Following the ndjson spec.

Constants

kDefaultIgnoreEmptyLines → const bool

Functions

parseNdjson({Stream<List<int>>? byteStream, Stream<String>? stream, bool ignoreEmptyLines = kDefaultIgnoreEmptyLines}) Stream<NdjsonLine>
Parse a given ndjson stream using message-framing, supports byteStream.
parseNdjsonWithConverter<T>({Stream<List<int>>? byteStream, Stream<String>? stream, T converter(NdjsonLine)?, T whenMap(Map<String, dynamic>)?, T whenAny(dynamic)?, T whenList(List)?, T whenInt(int)?, T whenDouble(double)?, T whenNum(num)?, T whenString(String)?, T whenBool(bool)?, T whenNull()?, T whenEmptyLine()?, bool? ignoreEmptyLines}) Stream<T>
Parse a given ndjson stream using message-framing, supports byteStream.