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