{"errorCode":22000,"data":{"xcode":"06b9ed05b37158341d07286be822d843","songList":[{"queryId":"11277008","songId":11277008,"songName":"\u52c7\u6c14","artistId":"1095","artistName":"\u6881\u9759\u8339","albumId":11276429,"albumName":"\u5979\u0026\u5979 [\u597d\u5973\u771f\u7231\u6b4c]","songPicSmall":"http:\/\/b.hiphotos.baidu.com\/ting\/pic\/item\/18d8bc3eb13533fa50437d0daad3fd1f41345b18.jpg","songPicBig":"http:\/\/a.hiphotos.baidu.com\/ting\/pic\/item\/9d82d158ccbf6c814c0bc5cbbe3eb13533fa40d1.jpg","songPicRadio":"http:\/\/c.hiphotos.baidu.com\/ting\/pic\/item\/2cf5e0fe9925bc31e1a8efbb5cdf8db1cb137018.jpg","lrcLink":"\/data2\/lrc\/11301207\/11301207.lrc","version":"","copyType":3,"time":238,"linkCode":22000,"songLink":"http:\/\/file.qianqian.com\/\/data2\/music\/42016392\/42016392.mp3?xcode=06b9ed05b3715834080e0c237f8c5ca50a27df109cddc66b\u0026src=\u0022http%3A%2F%2Fpan.baidu.com%2Fshare%2Flink%3Fshareid%3D459557%26uk%3D2503337755\u0022","showLink":"http:\/\/pan.baidu.com\/share\/link?shareid=459557\u0026uk=2503337755","format":"mp3","rate":128,"size":3824863,"relateStatus":"0","resourceType":"2"}]}}
====解析后图片:
这是WinForm项目,源中的\u52c7\u6c14等要转换为中文。
效果图:
谢谢!出现未处理的JsonReaderException,请问怎么解决?
我用你给的那段没问题哈,是不是你的json和上面的不同呢?
http://pan.baidu.com/s/1o6FWBUE
请问怎么将上述代码中的reader(也就是json输入源)改为string类型,这样更方便使用,麻烦了。
追答TextReader t = new StringReader("json 就写在这里");//StringReader 就可以带json字符串参数了
WinForm项目好像没有using System.Web.Script.Serialization;
而且我提供的源中含有有unicode中文字符,是不是要先转换?
真心求代码,劳烦了。
添加引用System.Web;System.Web.Extensions;
中文的好像也可以用。