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

Method AddObjectNullEmpty

encode_object.go:76–78  ·  view source on GitHub ↗

AddObjectNullEmpty adds an object to be encoded or skips it if IsNil returns true. Must be used inside a slice or array encoding (does not encode a key) value must implement MarshalerJSONObject

(v MarshalerJSONObject)

Source from the content-addressed store, hash-verified

74// Must be used inside a slice or array encoding (does not encode a key)
75// value must implement MarshalerJSONObject
76func (enc *Encoder) AddObjectNullEmpty(v MarshalerJSONObject) {
77 enc.ObjectNullEmpty(v)
78}
79
80// AddObjectKey adds a struct to be encoded, must be used inside an object as it will encode a key
81// value must implement MarshalerJSONObject

Callers 1

Calls 1

ObjectNullEmptyMethod · 0.95

Tested by 1