ArrayNull decodes the JSON value within an object or an array to a UnmarshalerJSONArray. v should be a pointer to an UnmarshalerJSONArray, if `null` value is encountered in JSON, it will leave the value v untouched, else it will create a new instance of the UnmarshalerJSONArray behind v.
(v interface{})
| 232 | // if `null` value is encountered in JSON, it will leave the value v untouched, |
| 233 | // else it will create a new instance of the UnmarshalerJSONArray behind v. |
| 234 | func (dec *Decoder) ArrayNull(v interface{}) error { |
| 235 | newCursor, err := dec.decodeArrayNull(v) |
| 236 | if err != nil { |
| 237 | return err |
| 238 | } |
| 239 | dec.cursor = newCursor |
| 240 | dec.called |= 1 |
| 241 | return nil |
| 242 | } |
| 243 | |
| 244 | // Index returns the index of an array being decoded. |
| 245 | func (dec *Decoder) Index() int { |