// MarshalJSON implements json.Marshaler.
// It will encode null if this Bool is null.
MarshalJSON implements json.Marshaler.
It will encode null if this Bool is null.
// MarshalJSON implements json . Marshaler . // It will encode null if this Bool is null .
func (b Bool) MarshalJSON() ([]byte, error) {
	if !b.Valid {
		return []byte("null"), nil
	}
	if !b.Bool {
		return []byte("false"), nil
	}
	return []byte("true"), nil
}
func ( b Bool ) MarshalJSON ( ) ( [ ] byte , error ) { if ! b . Valid { return [ ] byte ( " " ) , nil } if ! b . Bool { return [ ] byte ( " " ) , nil } return [ ] byte ( " " ) , nil }
MarshalJSON implements json.Marshaler.
MarshalJSON implements json . Marshaler .