MCPcopy Create free account
hub / github.com/Botloader/botloader / json

Method json

components/runtime/src/ts/httpclient.ts:297–300  ·  view source on GitHub ↗

* Read and decode the response body as json

()

Source from the content-addressed store, hash-verified

295 * Read and decode the response body as json
296 */
297 async json<T>(): Promise<T> {
298 let fullBody = decodeText(await this.readAll());
299 return JSON.parse(fullBody);
300 }
301
302 /**
303 * Read and decode the reponse body as utf8 encoded text

Callers

nothing calls this directly

Calls 2

readAllMethod · 0.95
decodeTextFunction · 0.90

Tested by

no test coverage detected