Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Classes
c
ConcatenatedJsonParseStream(unnamed 0?: ParseStreamOptions)
Stream to parse Concatenated JSON.
c
JsonParseStream(unnamed 0?: ParseStreamOptions)
Parse each chunk as JSON.
c
JsonStringifyStream(unnamed 0?: StringifyStreamOptions)
Convert each chunk to JSON string.
Interfaces
I
Options for JsonParseStream and
ConcatenatedJsonParseStream.
- readableStrategy: QueuingStrategy<JsonValue>
Controls the buffer of the
TransformStreamused internally. - writableStrategy: QueuingStrategy<string>
Controls the buffer of the
TransformStreamused internally.
I
Options for JsonStringifyStream.
- prefix: string
Prefix to be added after stringify.
- readableStrategy: QueuingStrategy<string>
Controls the buffer of the
TransformStreamused internally. - suffix: string
Suffix to be added after stringify.
- writableStrategy: QueuingStrategy<unknown>
Controls the buffer of the
TransformStreamused internally.
Type Aliases
T
JsonValue =
{ [key: string]: JsonValue | undefined; }
| JsonValue[]
| string
| number
| boolean
| null
| JsonValue[]
| string
| number
| boolean
| null
The type of the result of parsing JSON.