josn反序列化
请问下大家像这样的json字符串要怎么反序列化成实体对象呢?
\"{\"right_picture\":\"a:2:{s:13:\"right_pic_url\",s:57:\"http:\\/\\/www.sinaimg.cn\\/blog\\/miniblog\\/media\\/radio\\/12334.jpg\",s:14:\"right_link_url\",s:49:\"http:\\/\\/video.sina.com.cn\\/z\\/weiboradio\\/index.shtml\",}\"
------解决方案--------------------using System.Web.Script.Serialization;
json = json.Trim();
if (json[0] != '[')
json = "[" + json;
if (json[json.Length - 1] != ']')
json = json + "]";
JavaScriptSerializer jss = new JavaScriptSerializer();
ArrayList arrList = jss.Deserialize<ArrayList>(json);