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

Method getjson

jd_try.js:594–603  ·  view source on GitHub ↗
(key, defaultValue)

Source from the content-addressed store, hash-verified

592 }
593
594 getjson(key, defaultValue) {
595 let json = defaultValue
596 const val = this.getdata(key)
597 if (val) {
598 try {
599 json = JSON.parse(this.getdata(key))
600 } catch {}
601 }
602 return json
603 }
604
605 setjson(val, key) {
606 try {

Callers

nothing calls this directly

Calls 1

getdataMethod · 0.45

Tested by

no test coverage detected