using System.Collections.Generic;
using Newtonsoft.Json.Serialization;
using Newtonsoft.Json.Linq;
public static void Main()
""__type"": ""Status:http://jdlf.com.au/ns/business/api"",
""countedAbsence"": false,
""name"": ""Not Marked"",
""schoolSystemExportIdentifier"": ""0"",
""shortName"": ""Not Marked"",
""statusId"": ""802b325b-8ab6-4c84-b782-3e376024d4a7""
""__type"": ""Status:http://jdlf.com.au/ns/business/api"",
""countedAbsence"": false,
""description"": ""Student is considered to be attending(DoE 'Present In Class' Status)"",
""schoolSystemExportIdentifier"": ""100"",
""shortName"": ""Present"",
""statusId"": ""00205dad-44c6-405e-9958-451a7d0b5194""
var dtoDirectiries = JObject.Parse(output).SelectToken("d").ToObject<List<Statuses>>();
for (int i = 0; i < dtoDirectiries.Count; i++)
Console.WriteLine(dtoDirectiries[i].name);
public List<Statuses> Data { get; set; }
public string __type { get; set; }
[JsonProperty("countedAbsence")]
public string countedAbsence { get; set; }
[JsonProperty("description")]
public string description { get; set; }
public string name { get; set; }
[JsonProperty("schoolSystemExportIdentifier")]
public string schoolSystemExportIdentifier { get; set; }
[JsonProperty("shortCode")]
public string shortCode { get; set; }
[JsonProperty("shortName")]
public string shortName { get; set; }
[JsonProperty("statusId")]
public string statusId { get; set; }