Fjson
Bun

function

stream.consumers.json

function json(
stream: ReadableStream | AsyncIterable<any, any, any> | ReadableStream<any>
): Promise<unknown>;
@returns

Fulfills with the contents of the stream parsed as a UTF-8 encoded string that is then passed through JSON.parse().

Referenced types

interface ReadableStream<R = any>