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

Method AddString

decode_string.go:228–230  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
228func (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.

Callers 15

ExampleDecodeArrayFuncFunction · 0.95
UnmarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
MarshalJSONArrayMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45
UnmarshalJSONObjectMethod · 0.45

Calls 1

StringMethod · 0.95

Tested by 15

ExampleDecodeArrayFuncFunction · 0.76
UnmarshalJSONArrayMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
MarshalJSONArrayMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36
UnmarshalJSONObjectMethod · 0.36