AddObjectOmitEmpty 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)
| 67 | // Must be used inside a slice or array encoding (does not encode a key) |
| 68 | // value must implement MarshalerJSONObject |
| 69 | func (enc *Encoder) AddObjectOmitEmpty(v MarshalerJSONObject) { |
| 70 | enc.ObjectOmitEmpty(v) |
| 71 | } |
| 72 | |
| 73 | // AddObjectNullEmpty adds an object to be encoded or skips it if IsNil returns true. |
| 74 | // Must be used inside a slice or array encoding (does not encode a key) |