// MarshalJSON implements the encoding/json Marshaler interface. It will return
// the value of s if valid, otherwise 'null'.
MarshalJSON implements the encoding/json Marshaler interface. It will return
the value of s if valid, otherwise 'null'.
// MarshalJSON implements the encoding / json Marshaler interface . It will return // the value of s if valid otherwise ' 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 the encoding/json Marshaler interface.
MarshalJSON implements the encoding / json Marshaler interface .