MCPcopy Create free account
hub / github.com/Semporia/Scripts / getjson

Method getjson

jd_api_test.js:177–185  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

175 }
176
177 getjson(t, e) {
178 let s = e;
179 const i = this.getdata(t);
180 if (i) try {
181 s = JSON.parse(this.getdata(t))
182 } catch {
183 }
184 return s
185 }
186
187 setjson(t, e) {
188 try {

Callers

nothing calls this directly

Calls 1

getdataMethod · 0.45

Tested by

no test coverage detected