AddObjectKeyOmitEmpty 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)
| 87 | // Must be used inside a slice or array encoding (does not encode a key) |
| 88 | // value must implement MarshalerJSONObject |
| 89 | func (enc *Encoder) AddObjectKeyOmitEmpty(key string, v MarshalerJSONObject) { |
| 90 | enc.ObjectKeyOmitEmpty(key, v) |
| 91 | } |
| 92 | |
| 93 | // AddObjectKeyNullEmpty adds an object to be encoded or skips it if IsNil returns true. |
| 94 | // Must be used inside a slice or array encoding (does not encode a key) |