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

Method json

deps/undici/src/lib/api/readable.js:185–187  ·  view source on GitHub ↗

* Consumes and returns the body as a JavaScript Object. * * @see https://fetch.spec.whatwg.org/#dom-body-json * @returns {Promise }

()

Source from the content-addressed store, hash-verified

183 * @returns {Promise<unknown>}
184 */
185 json () {
186 return consume(this, 'json')
187 }
188
189 /**
190 * Consumes and returns the body as a Blob

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected