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

Method AddObjectKeyNullEmpty

encode_object.go:96–98  ·  view source on GitHub ↗

AddObjectKeyNullEmpty 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

(key string, v MarshalerJSONObject)

Source from the content-addressed store, hash-verified

94// Must be used inside a slice or array encoding (does not encode a key)
95// value must implement MarshalerJSONObject
96func (enc *Encoder) AddObjectKeyNullEmpty(key string, v MarshalerJSONObject) {
97 enc.ObjectKeyNullEmpty(key, v)
98}
99
100// Object adds an object to be encoded, must be used inside a slice or array encoding (does not encode a key)
101// value must implement MarshalerJSONObject

Callers 1

Calls 1

ObjectKeyNullEmptyMethod · 0.95

Tested by 1