Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Script-Hub-Org/Script-Hub
/ getjson
Method
getjson
env/env.js:87–95 ·
view source on GitHub ↗
(t, e)
Source
from the content-addressed store, hash-verified
85
}
86
}
87
getjson(t, e) {
88
let
s = e
89
const
a = this.getdata(t)
90
if
(a)
91
try {
92
s = JSON.parse(this.getdata(t))
93
} catch {}
94
return
s
95
}
96
setjson(t, e) {
97
try {
98
return
this.setdata(JSON.stringify(t), e)
Callers
nothing calls this directly
Calls
2
getdata
Method · 0.45
parse
Method · 0.45
Tested by
no test coverage detected