BoolNull decodes the JSON value within an object or an array to a *bool. If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned. If next key is null, bool will be false.
(v **bool)
| 232 | // If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned. |
| 233 | // If next key is null, bool will be false. |
| 234 | func (dec *Decoder) BoolNull(v **bool) error { |
| 235 | err := dec.decodeBoolNull(v) |
| 236 | if err != nil { |
| 237 | return err |
| 238 | } |
| 239 | dec.called |= 1 |
| 240 | return nil |
| 241 | } |