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

Function fetch_json

test/fixtures/wpt/resources/testharness.js:5033–5036  ·  view source on GitHub ↗

Fetches a JSON resource and parses it

(resource)

Source from the content-addressed store, hash-verified

5031
5032 /** Fetches a JSON resource and parses it */
5033 async function fetch_json(resource) {
5034 const response = await fetch(resource);
5035 return await response.json();
5036 }
5037 if (!global_scope.GLOBAL || !global_scope.GLOBAL.isShadowRealm()) {
5038 expose(fetch_json, 'fetch_json');
5039 }

Callers

nothing calls this directly

Calls 2

fetchFunction · 0.85
jsonMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…