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

Method AddObject

decode_object.go:361–363  ·  view source on GitHub ↗

Add Values functions AddObject decodes the JSON value within an object or an array to a UnmarshalerJSONObject.

(v UnmarshalerJSONObject)

Source from the content-addressed store, hash-verified

359
360// AddObject decodes the JSON value within an object or an array to a UnmarshalerJSONObject.
361func (dec *Decoder) AddObject(v UnmarshalerJSONObject) error {
362 return dec.Object(v)
363}
364
365// AddObjectNull decodes the JSON value within an object or an array to a UnmarshalerJSONObject.
366func (dec *Decoder) AddObjectNull(v interface{}) error {

Callers 15

UnmarshalJSONArrayMethod · 0.45
UnmarshalJSONArrayMethod · 0.45
UnmarshalJSONArrayMethod · 0.45
MarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalStreamMethod · 0.45
MarshalStreamMethod · 0.45
MarshalStreamMethod · 0.45
UnmarshalStreamMethod · 0.45

Calls 1

ObjectMethod · 0.95

Tested by 10

UnmarshalJSONArrayMethod · 0.36
UnmarshalJSONArrayMethod · 0.36
UnmarshalJSONArrayMethod · 0.36
MarshalJSONArrayMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalStreamMethod · 0.36
MarshalStreamMethod · 0.36