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.174.0/encoding/json/_stringify.ts";

Optional object interface for JsonStringifyStream.

Properties

readonly
optional
prefix: string = ""

Prefix to be added after stringify.

readonly
optional
suffix: string = "\n"

Suffix to be added after stringify.

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.