MCPcopy Create free account
hub / github.com/francoispqt/gojay / AddStringNull

Method AddStringNull

decode_string.go:235–237  ·  view source on GitHub ↗

AddStringNull 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)

Source from the content-addressed store, hash-verified

233// If next key is not a JSON string nor null, InvalidUnmarshalError will be returned.
234// If a `null` is encountered, gojay does not change the value of the pointer.
235func (dec *Decoder) AddStringNull(v **string) error {
236 return dec.StringNull(v)
237}
238
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.

Callers 1

UnmarshalJSONObjectMethod · 0.80

Calls 1

StringNullMethod · 0.95

Tested by 1

UnmarshalJSONObjectMethod · 0.64