Hello, Thanks for your response. would you be able to tell me if this is the correct way to finish it.
var r = JsonConvert.DeserializeObject<RootObject>(jsonString);
if (r.data[0] == null)
{
}
else
{
return true;
}
After your code, this is what i added. I used json2csharp.com and got this:
public class Datum
{
public string id { get; set; }
public string user_id { get; set; }
public string user_name { get; set; }
public string game_id { get; set; }
public string type { get; set; }
public string title { get; set; }
public int viewer_count { get; set; }
public DateTime started_at { get; set; }
public string language { get; set; }
public string thumbnail_url { get; set; }
public List<string> tag_ids { get; set; }
}
public class Pagination
{
public string cursor { get; set; }
}
public class RootObject
{
public List<Datum> data { get; set; }
public Pagination pagination { get; set; }
}
Please let me know, appreciate your help