MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / json

Method json

examples/io/tcp/fetch/fetch.js:68–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 return body;
67 }
68 async json() {
69 let body = this.#body;
70 if (body) {
71 this.#body = undefined;
72 body = await body;
73 body = String.fromArrayBuffer(body);
74 return JSON.parse(body);
75 }
76 return body;
77 }
78 async text() {
79 let body = this.#body;
80 if (body) {

Callers 2

main.jsFile · 0.45
main.jsFile · 0.45

Calls 2

fromArrayBufferMethod · 0.65
parseMethod · 0.65

Tested by

no test coverage detected