I'm trying to desearialize the following using Newtonsoft.Json
{
"max_id_str":"1234567",
"results":[{
"created_at":"Tue, 21 May 2013 03:06:23 +0000",
"from_user":"Name Here",
"from_user_id":33333,
"text":"THE TEXT GOES HERE"
}],
"results_per_page":1,
"since_id":0,
"since_id_str":"0"
}
I can retrieve the max_id_str using desearialization but cannot get any of the data in "results"
Here's the code I have
public class tweet
{
public string max_id_str { get; set; }
public string text{ get; set; }
public string results_per_page{ get; set; }
public string since_id { get; set; }
public string since_id_str { get; set; }
}
I then create an object of the class and attempt to desearlize it into the object
tweet t = new tweet();
t = JsonConvert.DeserializeObject<tweet>(e.Result);
Everything but "text" populates? Text's value is null when I output the value. Any ideas how to accomplish what I'm trying?
tweetclass member? where do you want youresultsarray to be deserialized to?