public class Metadata
{
public string title { get; set; }
public string description { get; set; }
public string media { get; set; }
public object media_hash { get; set; }
public int copies { get; set; }
public object issued_at { get; set; }
public object expires_at { get; set; }
public object starts_at { get; set; }
public object updated_at { get; set; }
public object extra { get; set; }
public object reference { get; set; }
public object reference_hash { get; set; }
}
public class ApprovedAccountIds
{
}
public class Root
{
public string token_id { get; set; }
public string owner_id { get; set; }
public Metadata metadata { get; set; }
public ApprovedAccountIds approved_account_ids { get; set; }
}
var myJsonObject = JsonConvert.DeserializeObject<List<Root>>(myJsonString);
if (items != null)
private void seedListView()
{
//Define
var data = new[]
{
new []{"Lollipop", "392", "0.2", "0"},
new []{"KitKat", "518", "26.0", "7"},
new []{"Ice cream sandwich", "237", "9.0", "4.3"},
new []{"Jelly Bean", "375", "0.0", "0.0"},
new []{"Honeycomb", "408", "3.2", "6.5"}
};
//Add
foreach (string[] version in data)
{
var item = new ListViewItem(version);
materialListView1.Items.Add(item);
}
}