Using JSON.Net (http://www.newtonsoft.com/json/help/html/LINQtoJSON.htm) and the following code:
@using Newtonsoft.Json;
@using Newtonsoft.Json.Linq;
@{
var url = "https://graph.facebook.com/v2.2/me&fields=id%2Cname%2Cposts.limit(3)&format=json&method=get&pretty=0&suppress_http_code=1";
var syncClient = new WebClient();
var content = syncClient.DownloadString(url);
JObject facebook = JObject.Parse(content);
//To-Do: Get all messages as list<string> using LINQ for JSON
// Ex: IList<string> allDrives = o["Drives"].Select(t => (string)t).ToList();
}
How would I get a List<> of all messages given the following JSON format (http://www.codeshare.io/EvIdN).
Thanks in advance!