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

Method Array

decode_array.go:220–228  ·  view source on GitHub ↗

Array decodes the JSON value within an object or an array to a UnmarshalerJSONArray.

(v UnmarshalerJSONArray)

Source from the content-addressed store, hash-verified

218
219// Array decodes the JSON value within an object or an array to a UnmarshalerJSONArray.
220func (dec *Decoder) Array(v UnmarshalerJSONArray) error {
221 newCursor, err := dec.decodeArray(v)
222 if err != nil {
223 return err
224 }
225 dec.cursor = newCursor
226 dec.called |= 1
227 return nil
228}
229
230// ArrayNull decodes the JSON value within an object or an array to a UnmarshalerJSONArray.
231// v should be a pointer to an UnmarshalerJSONArray,

Callers 11

SliceStringMethod · 0.95
SliceIntMethod · 0.95
SliceFloat64Method · 0.95
SliceBoolMethod · 0.95
AddArrayMethod · 0.95
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

decodeArrayMethod · 0.95

Tested by

no test coverage detected