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)
| 74 | // Must be used inside a slice or array encoding (does not encode a key) |
| 75 | // value must implement MarshalerJSONObject |
| 76 | func (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 |