func MarshalJSON(data interface{}) io.Reader {
	if data == nil {
		return nil
	}

	body, err := json.Marshal(data)
	if err != nil {
		return &errorReader{err: err}
	}

	return bytes.NewReader(body)
}
// MarshalJSON marshals JSON into an io.Reader
MarshalJSON marshals JSON into an io.Reader
// MarshalJSON marshals JSON into an io . Reader
func MarshalJSON(data interface{}) io.Reader {
	if data == nil {
		return nil
	}
	body, err := json.Marshal(data)
	if err != nil {
		return &errorReader{err: err}
	}
	return bytes.NewReader(body)
}
func MarshalJSON ( data interface { } ) io . Reader { if data == nil { return nil } body , err := json . Marshal ( data ) if err != nil { return & errorReader { err : err } } return bytes . NewReader ( body ) }
MarshalJSON marshals JSON into an io.Reader
MarshalJSON marshals JSON into an io . Reader