MCPcopy Create free account
hub / github.com/aws/smithy-go / decodeJSONNull

Method decodeJSONNull

document/json/decoder.go:78–84  ·  view source on GitHub ↗
(rv reflect.Value)

Source from the content-addressed store, hash-verified

76}
77
78func (d *Decoder) decodeJSONNull(rv reflect.Value) error {
79 if rv.IsValid() && rv.CanSet() {
80 rv.Set(reflect.Zero(rv.Type()))
81 }
82
83 return nil
84}
85
86func (d *Decoder) decodeJSONBoolean(tv bool, rv reflect.Value) error {
87 switch rv.Kind() {

Callers 1

decodeMethod · 0.95

Calls 3

IsValidMethod · 0.80
TypeMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected