deno.com

function json

#json(stream:
WebReadableStream
| ReadableStream
| AsyncIterable<any>
): Promise<unknown>

Parameters #

#stream:
WebReadableStream
| ReadableStream
| AsyncIterable<any>

Return Type #

Promise<unknown>

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