MCPcopy
hub / github.com/ampproject/amphtml / json

Method json

src/polyfills/fetch.js:171–175  ·  view source on GitHub ↗

* Drains the response and returns the JSON object. * @return {!Promise<!JsonObject>}

()

Source from the content-addressed store, hash-verified

169 * @return {!Promise<!JsonObject>}
170 */
171 json() {
172 return /** @type {!Promise<!JsonObject>} */ (
173 this.drainText_().then(parseJson)
174 );
175 }
176
177 /**
178 * Drains the response and returns a promise that resolves with the response

Callers 15

createIncidentFunction · 0.45
getIncidentFunction · 0.45
updateIncidentFunction · 0.45
addCommentFunction · 0.45
checkFileFunction · 0.45
fetchAmpSw_Function · 0.45
githubFetchFunction · 0.45
callbackFunction · 0.45
test-server.jsFile · 0.45
saveVariablesFunction · 0.45
getVariableRequestFunction · 0.45

Calls 2

drainText_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected