AddArrayKey adds an array or slice to be encoded, must be used inside an object as it will encode a key value must implement Marshaler
(key string, v MarshalerJSONArray)
| 42 | // AddArrayKey adds an array or slice to be encoded, must be used inside an object as it will encode a key |
| 43 | // value must implement Marshaler |
| 44 | func (enc *Encoder) AddArrayKey(key string, v MarshalerJSONArray) { |
| 45 | enc.ArrayKey(key, v) |
| 46 | } |
| 47 | |
| 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. |
no test coverage detected