MCPcopy Create free account
hub / github.com/nodejs/node / json

Method json

deps/undici/undici.js:17177–17179  ·  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

17175 * @returns {Promise<unknown>}
17176 */
17177 json() {
17178 return consume(this, "json");
17179 }
17180 /**
17181 * Consumes and returns the body as a Blob
17182 *

Callers

nothing calls this directly

Calls 1

consumeFunction · 0.70

Tested by

no test coverage detected