MCPcopy Index your code
hub / github.com/nodejs/node / json

Function json

lib/stream/consumers.js:85–88  ·  view source on GitHub ↗

* @param {AsyncIterable|ReadableStream|Readable} stream * @returns {Promise }

(stream)

Source from the content-addressed store, hash-verified

83 * @returns {Promise<any>}
84 */
85async function json(stream) {
86 const str = await text(stream);
87 return JSONParse(str);
88}
89
90module.exports = {
91 arrayBuffer,

Callers

nothing calls this directly

Calls 1

textFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…