Fjson
Bun

function

stream.consumers.json

function json(
stream: ReadableStream<any> | ReadableStream | AsyncIterable<any, any, 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().