Skip to main content
The Deno 2 Release Candidate is 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.190.0/json/mod.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.