2012-07-20 190 views
3

我想将字典转换为Json。关键是一个字符串,值是CompaignModel的ICollection的:将字典转换为JSOn

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

回答