func (fc *FileCollection) MarshalJSON() ([]byte, error) {
	escaped := make(map[string]*Attachment)
	for filename, attachment := range fc.files {
		escaped[EscapeFilename(filename)] = attachment
	}
	return json.Marshal(escaped)
}
// MarshalJSON implements the json.Marshaler interface for the FileCollection type.
MarshalJSON implements the json.Marshaler interface for the FileCollection type.
// MarshalJSON implements the json . Marshaler interface for the FileCollection type .
func (fc *FileCollection) MarshalJSON() ([]byte, error) {
	escaped := make(map[string]*Attachment)
	for filename, attachment := range fc.files {
		escaped[EscapeFilename(filename)] = attachment
	}
	return json.Marshal(escaped)
}
func ( fc * FileCollection ) MarshalJSON ( ) ( [ ] byte , error ) { escaped := make ( map [ string ] * Attachment ) for filename , attachment := range fc . files { escaped [ EscapeFilename ( filename ) ] = attachment } return json . Marshal ( escaped ) }
MarshalJSON implements the json.Marshaler interface for the FileCollection type.
MarshalJSON implements the json . Marshaler interface for the FileCollection type .