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

Method AddFloatNull

decode_number_float.go:432–434  ·  view source on GitHub ↗

AddFloatNull decodes the JSON value within an object or an array to a *float64. If next key value overflows float64, an InvalidUnmarshalError error will be returned. If a `null` is encountered, gojay does not change the value of the pointer.

(v **float64)

Source from the content-addressed store, hash-verified

430// If next key value overflows float64, an InvalidUnmarshalError error will be returned.
431// If a `null` is encountered, gojay does not change the value of the pointer.
432func (dec *Decoder) AddFloatNull(v **float64) error {
433 return dec.Float64Null(v)
434}
435
436// AddFloat64 decodes the JSON value within an object or an array to a *float64.
437// If next key value overflows float64, an InvalidUnmarshalError error will be returned.

Callers 1

UnmarshalJSONObjectMethod · 0.80

Calls 1

Float64NullMethod · 0.95

Tested by 1

UnmarshalJSONObjectMethod · 0.64