Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devld/go-drive
/ DecodeJSONValue
Method
DecodeJSONValue
script/runtime.go:126–128 ·
view source on GitHub ↗
(encoded []byte)
Source
from the content-addressed store, hash-verified
124
}
125
126
func
(v *VM) DecodeJSONValue(encoded []byte) (any, error) {
127
return
v.o.Call(
"JSON.parse"
, nil, string(encoded))
128
}
129
130
func
(v *VM) ThrowError(e any) {
131
if
oe, ok := e.(otto.Value); ok {
Callers
1
getData
Method · 0.80
Calls
1
Call
Method · 0.45
Tested by
no test coverage detected