MCPcopy 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
126func (v *VM) DecodeJSONValue(encoded []byte) (any, error) {
127 return v.o.Call("JSON.parse", nil, string(encoded))
128}
129
130func (v *VM) ThrowError(e any) {
131 if oe, ok := e.(otto.Value); ok {

Callers 1

getDataMethod · 0.80

Calls 1

CallMethod · 0.45

Tested by

no test coverage detected