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