func (cc *CardCollection) MarshalJSON() ([]byte, error) {
	ids := make([]string, 0, len(cc.col))
	for id := range cc.col {
		ids = append(ids, id)
	}
	sort.Strings(ids)
	return json.Marshal(ids)
}
// MarshalJSON fulfills the json.Marshaler interface for the CardCollection type.
MarshalJSON fulfills the json.Marshaler interface for the CardCollection type.
// MarshalJSON fulfills the json . Marshaler interface for the CardCollection type .
func (cc *CardCollection) MarshalJSON() ([]byte, error) {
	ids := make([]string, 0, len(cc.col))
	for id := range cc.col {
		ids = append(ids, id)
	}
	sort.Strings(ids)
	return json.Marshal(ids)
}
func ( cc * CardCollection ) MarshalJSON ( ) ( [ ] byte , error ) { ids := make ( [ ] string , 0 , len ( cc . col ) ) for id := range cc . col { ids = append ( ids , id ) } sort . Strings ( ids ) return json . Marshal ( ids ) }
MarshalJSON fulfills the json.Marshaler interface for the CardCollection type.
MarshalJSON fulfills the json . Marshaler interface for the CardCollection type .