how can in c# modern ui ?
var url = "http://ajax.googleapis.com/ajax/services/feed/load?q=http%3a%2f%2fwww.digg.com%2frss%2findex.xml&v=1.0"; var wc = new webclient(); var rawfeeddata = wc.downloadstring(url); //you can use system.web.script.serialization if don't want use json.net javascriptserializer ser = new javascriptserializer(); feedapiresult foo = ser.deserialize<feedapiresult>(rawfeeddata); //json.net return same strong typed object var apiresult = jsonconvert.deserializeobject<feedapiresult>(rawfeeddata);
it gives me error error in webclient , system.web.script.serialization
i found how make work.
don't know why did mess , don't understand why here's solution: right click on project , add reference to:
system.web.extensions
than can add reference need with:
using system.web.script.serialization;
and time work. (at least did on .net framework 3.5)
Comments
Post a Comment