Add Values functions AddObject decodes the JSON value within an object or an array to a UnmarshalerJSONObject.
(v UnmarshalerJSONObject)
| 359 | |
| 360 | // AddObject decodes the JSON value within an object or an array to a UnmarshalerJSONObject. |
| 361 | func (dec *Decoder) AddObject(v UnmarshalerJSONObject) error { |
| 362 | return dec.Object(v) |
| 363 | } |
| 364 | |
| 365 | // AddObjectNull decodes the JSON value within an object or an array to a UnmarshalerJSONObject. |
| 366 | func (dec *Decoder) AddObjectNull(v interface{}) error { |