Dictionary<string, string>转json

时间:2016-09-07 12:29:55   收藏:0   阅读:429

Dictionary<string, string>转json

     select用法:

Newtonsoft.Json.JsonConvert.SerializeObject(dicSubject.Select(l => new { label=l.Key,value=l.Value}))

 

原文:http://www.cnblogs.com/xbblogs/p/5848558.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!