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

Method AddBoolNull

decode_bool.go:215–217  ·  view source on GitHub ↗

AddBoolNull decodes the JSON value within an object or an array to a *bool. If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned. If next key is null, bool will be false. If a `null` is encountered, gojay does not change the value of the pointer.

(v **bool)

Source from the content-addressed store, hash-verified

213// If next key is null, bool will be false.
214// If a `null` is encountered, gojay does not change the value of the pointer.
215func (dec *Decoder) AddBoolNull(v **bool) error {
216 return dec.BoolNull(v)
217}
218
219// Bool decodes the JSON value within an object or an array to a *bool.
220// If next key is neither null nor a JSON boolean, an InvalidUnmarshalError will be returned.

Callers 1

UnmarshalJSONObjectMethod · 0.80

Calls 1

BoolNullMethod · 0.95

Tested by 1

UnmarshalJSONObjectMethod · 0.64