AddArrayKeyOmitEmpty adds an array or slice to be encoded and skips it if it is nil. Must be called inside an object as it will encode a key.
(key string, v MarshalerJSONArray)
| 48 | // AddArrayKeyOmitEmpty adds an array or slice to be encoded and skips it if it is nil. |
| 49 | // Must be called inside an object as it will encode a key. |
| 50 | func (enc *Encoder) AddArrayKeyOmitEmpty(key string, v MarshalerJSONArray) { |
| 51 | enc.ArrayKeyOmitEmpty(key, v) |
| 52 | } |
| 53 | |
| 54 | // AddArrayKeyNullEmpty adds an array or slice to be encoded and skips it if it is nil. |
| 55 | // Must be called inside an object as it will encode a key. `null` will be encoded` |