String 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)
| 239 | // String decodes the JSON value within an object or an array to a *string. |
| 240 | // If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. |
| 241 | func (dec *Decoder) String(v *string) error { |
| 242 | err := dec.decodeString(v) |
| 243 | if err != nil { |
| 244 | return err |
| 245 | } |
| 246 | dec.called |= 1 |
| 247 | return nil |
| 248 | } |
| 249 | |
| 250 | // StringNull decodes the JSON value within an object or an array to a **string. |
| 251 | // If next key is not a JSON string nor null, InvalidUnmarshalError will be returned. |