using System.Collections.Generic;
public static void Main()
""slug"": ""e5t-hal-3al2a"",
""url"": ""https:\/\/mahdii.000webhostapp.com\/?p=9"",
""title"": ""e5t hal 3al2a"",
""title_plain"": ""e5t hal 3al2a"",
""date"": ""2017-02-09 19:35:05"",
""modified"": ""2017-02-09 19:35:05"",
""name"": ""Uncategorized"",
""slug"": ""uncategorized"",
""taxonomy"": ""category"",
""category_description"": """",
""cat_name"": ""Uncategorized"",
""category_nicename"": ""uncategorized"",
""gravatar"": ""http:\/\/www.gravatar.com\/avatar\/b2f7652b7fd5e51e1ac71f6d23998c4c?s=100&d=mm&r=g""
""comment_count"": ""0"",
""comment_status"": ""open""
""slug"": ""sample-page"",
""url"": ""https:\/\/mahdii.000webhostapp.com\/?page_id=2"",
""title"": ""Sample Page"",
""title_plain"": ""Sample Page"",
""date"": ""2017-02-09 12:31:52"",
""modified"": ""2017-02-09 12:31:52"",
""excerpt"": ""This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with … <a href=\""https:\/\/mahdii.000webhostapp.com\/?page_id=2\""> Continue reading <span class=\""meta-nav\"">→<\/span><\/a>"",
""gravatar"": ""http:\/\/www.gravatar.com\/avatar\/b2f7652b7fd5e51e1ac71f6d23998c4c?s=100&d=mm&r=g""
""comment_count"": ""0"",
""comment_status"": ""closed""
var deserializePost = JsonConvert.DeserializeObject<RootObject>(json);
var postInfo = deserializePost.posts.Select(p => new { Name = p.title_plain, AuthorNicknames = p.author.Select(a => a.nickname) });
Console.WriteLine(postInfo.Count());
public string id { get; set; }
public string slug { get; set; }
public string name { get; set; }
public string first_name { get; set; }
public string last_name { get; set; }
public string nickname { get; set; }
public string url { get; set; }
public string description { get; set; }
public string gravatar { get; set; }
public string id { get; set; }
public string type { get; set; }
public string slug { get; set; }
public string url { get; set; }
public string status { get; set; }
public string title { get; set; }
public string title_plain { get; set; }
public string date { get; set; }
public string modified { get; set; }
public string excerpt { get; set; }
public string parent { get; set; }
public List<object> category { get; set; }
public List<object> tag { get; set; }
public List<Author> author { get; set; }
public string comment_count { get; set; }
public string comment_status { get; set; }
public List<Post> posts { get; set; }