Add Values functions AddString 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.
(v *string)
| 226 | // AddString decodes the JSON value within an object or an array to a *string. |
| 227 | // If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. |
| 228 | func (dec *Decoder) AddString(v *string) error { |
| 229 | return dec.String(v) |
| 230 | } |
| 231 | |
| 232 | // AddStringNull decodes the JSON value within an object or an array to a *string. |
| 233 | // If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. |