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