Deserialize twitter stream

May 30, 2011 at 12:38 PM

Hi,

this is a simple question... how do i deserialize a twitter stream taken from:

http://search.twitter.com/search.json?q=user

???

 

this line causes exception

object[] twitterList = JsonConvert.DeserializeObject<object[]>(e.Result.ToString());

I use a web client:

WebClient client = new WebClient();
client.DownloadStringAsync(new Uri(@"http://search.twitter.com/search.json?q="+user, UriKind.RelativeOrAbsolute));
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);