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

Method UnmarshalJSONArray

decode_array_test.go:376–383  ·  view source on GitHub ↗
(dec *Decoder)

Source from the content-addressed store, hash-verified

374type ArrayNull []string
375
376func (a *ArrayNull) UnmarshalJSONArray(dec *Decoder) error {
377 var str string
378 if err := dec.String(&str); err != nil {
379 return err
380 }
381 *a = append(*a, str)
382 return nil
383}
384
385type ObjectArrayNull struct {
386 SubArray *ArrayNull

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected