Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface StringifyStreamOptions
import { type StringifyStreamOptions } from "https://deno.land/std@0.155.0/encoding/json/_stringify.ts";

Optional object interface for JSONStringifyStream.

Properties

readonly
optional
prefix: string

Prefix to be added after stringify. The default is "".

readonly
optional
suffix: string

Suffix to be added after stringify. The default is "\n".

readonly
optional
writableStrategy: QueuingStrategy<unknown>

Controls the buffer of the TransformStream used internally. Check https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream.

readonly
optional
readableStrategy: QueuingStrategy<string>

Controls the buffer of the TransformStream used internally. Check https://developer.mozilla.org/en-US/docs/Web/API/TransformStream/TransformStream.