MCPcopy Index your code
hub / github.com/ampproject/amphtml / json

Method json

third_party/subscriptions-project/swg.js:13665–13669  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

13663 * @return {!Promise<!JsonObject>}
13664 */
13665 json() {
13666 return /** @type {!Promise<!JsonObject>} */ (
13667 this.drainText_().then(parseJson)
13668 );
13669 }
13670
13671 /**
13672 * Drains the response and returns a promise that resolves with the response

Callers

nothing calls this directly

Calls 2

drainText_Method · 0.95
thenMethod · 0.45

Tested by

no test coverage detected