我想将字典转换为 Json。键是字符串,值是 CompaignModel 的 ICollection:
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
这是包含 BuzzCompaign 模型的内容:
public class BuzzCompaignModel
{
public long BuzzCompaignId { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public DateTime EndDate { get; set; }
}
如何将 BuzzCompaignByInterest 转换为 JSON