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

Method AddArray

decode_array.go:210–212  ·  view source on GitHub ↗

Add Values functions AddArray decodes the JSON value within an object or an array to a UnmarshalerJSONArray.

(v UnmarshalerJSONArray)

Source from the content-addressed store, hash-verified

208
209// AddArray decodes the JSON value within an object or an array to a UnmarshalerJSONArray.
210func (dec *Decoder) AddArray(v UnmarshalerJSONArray) error {
211 return dec.Array(v)
212}
213
214// AddArrayNull decodes the JSON value within an object or an array to a UnmarshalerJSONArray.
215func (dec *Decoder) AddArrayNull(v interface{}) error {

Callers 8

UnmarshalJSONArrayMethod · 0.45
UnmarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
MarshalStreamMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

ArrayMethod · 0.95

Tested by 5

UnmarshalJSONArrayMethod · 0.36
UnmarshalJSONArrayMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
MarshalStreamMethod · 0.36