StringNull decodes the JSON value within an object or an array to a **string. If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. If a `null` is encountered, gojay does not change the value of the pointer.
(v **string)
| 251 | // If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. |
| 252 | // If a `null` is encountered, gojay does not change the value of the pointer. |
| 253 | func (dec *Decoder) StringNull(v **string) error { |
| 254 | err := dec.decodeStringNull(v) |
| 255 | if err != nil { |
| 256 | return err |
| 257 | } |
| 258 | dec.called |= 1 |
| 259 | return nil |
| 260 | } |