// UnmarshalJSON is json.Unmarshaler interface implementation
UnmarshalJSON is json.Unmarshaler interface implementation
// UnmarshalJSON is json . Unmarshaler interface implementation
func (b *Bool) UnmarshalJSON(text []byte) error {
	if bytes.Equal(jsonNull, text) {
		*b = Bool{}
		return nil
	}
	var value bool
	if err := json.Unmarshal(text, &value); err != nil {
		return err
	}
	b.set(value)
	return nil
}
func ( b * Bool ) UnmarshalJSON ( text [ ] byte ) error { if bytes . Equal ( jsonNull , text ) { * b = Bool { } return nil } var value bool if err := json . Unmarshal ( text , & value ) ; err != nil { return err } b . set ( value ) return nil }
UnmarshalJSON is json.Unmarshaler interface implementation
UnmarshalJSON is json . Unmarshaler interface implementation