OK, So Essentially if you look at the following code I've made a web request to a google api that returns calendar info as a string, but I'm having trouble accessing the nested Json data. I've done a lot of searching and to be honest I'm completely lost. here's the code where I make the web request and pass the Json data to a string:
WebRequest request = WebRequest.Create("http://www.google.com/calendar/feeds/[email protected]/public/full?alt=json");
request.Credentials = CredentialCache.DefaultCredentials;
request.ContentType = "application/json";
WebResponse response = request.GetResponse();
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader (dataStream);
string responseFromServer = reader.ReadToEnd();
but once I have the string containing the Json Data I can only seem to access the version and encoding components with my following class:
public class calendarData
{
public string version { get; set; }
public string encoding { get; set; }
public string feed { get; set; }
}
So, I guess my question is what's the best way to access nested json data in the case of this request...the url provided in the web request above should work.
Also, I'm working in Xamarin studio so I'm using Newtonsoft.Json to do my Deserialization.