MCPcopy Create free account
hub / github.com/francoispqt/gojay / Interface

Method Interface

decode_interface.go:123–130  ·  view source on GitHub ↗

Interface decodes the JSON value within an object or an array to an interface{}.

(value *interface{})

Source from the content-addressed store, hash-verified

121
122// Interface decodes the JSON value within an object or an array to an interface{}.
123func (dec *Decoder) Interface(value *interface{}) error {
124 err := dec.decodeInterface(value)
125 if err != nil {
126 return err
127 }
128 dec.called |= 1
129 return nil
130}

Callers 5

AddInterfaceMethod · 0.95
allTypesTestCasesFunction · 0.80
decodeArrayNullMethod · 0.80
decodeObjectNullMethod · 0.80
makePointerFunction · 0.80

Calls 1

decodeInterfaceMethod · 0.95

Tested by 2

allTypesTestCasesFunction · 0.64
makePointerFunction · 0.64