AddObject adds an object to be encoded, must be used inside a slice or array encoding (does not encode a key) value must implement MarshalerJSONObject
(v MarshalerJSONObject)
| 60 | // AddObject adds an object to be encoded, must be used inside a slice or array encoding (does not encode a key) |
| 61 | // value must implement MarshalerJSONObject |
| 62 | func (enc *Encoder) AddObject(v MarshalerJSONObject) { |
| 63 | enc.Object(v) |
| 64 | } |
| 65 | |
| 66 | // AddObjectOmitEmpty adds an object to be encoded or skips it if IsNil returns true. |
| 67 | // Must be used inside a slice or array encoding (does not encode a key) |