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

Method MarshalJSONArray

encode_array_test.go:258–262  ·  view source on GitHub ↗
(enc *Encoder)

Source from the content-addressed store, hash-verified

256type TestEncodingObjOmitEmpty []*TestObjEmpty
257
258func (t TestEncodingObjOmitEmpty) MarshalJSONArray(enc *Encoder) {
259 for _, e := range t {
260 enc.AddObjectOmitEmpty(e)
261 }
262}
263func (t TestEncodingObjOmitEmpty) IsNil() bool {
264 return t == nil
265}

Callers

nothing calls this directly

Calls 1

AddObjectOmitEmptyMethod · 0.80

Tested by

no test coverage detected