feanz
11/21/2013 - 11:04 AM

Trello Deserialise Checklist

Trello Deserialise Checklist

void Main()
{
	var data = @"{'id':'528c97b12314dcac5c0021b0','name':'Query','idBoard':'5268f13aa63b12236e0051d2','idCard':
	'528c97aa3a003a4a0c00339a','pos':16384,'checkItems':[{'state':'incomplete','id':'528c97bf7a14af624e00228d',
	'name':'What ares are on or off in what page for pocket hub section','nameData':{'emoji':{}},'pos':16970},
	{'state':'incomplete','id':'528c97d3e790ecc25c0035f6',
	'name':'Buy now integration','nameData':null,'pos':33467},
	{'state':'incomplete','id':'528c97d9205dd7a54c003598',
	'name':'Buys now quantitiy integration','nameData':null,'pos':50628},
	{'state':'incomplete','id':'528c97f0b52fd8ab2f003227','name':'Vote functionality integration','nameData':null,'pos':67217},
	{'state':'incomplete','id':'528cd5740f91f5f6710051f2','name':'User role and permissions for UKB staff','nameData':null,'pos':84228},
	{'state':'incomplete','id':'528cd58713a32f737100307c','name':'What will the deployment process to controlled environment','nameData':null,'pos':100668},{'state':'incomplete','id':'528cd59d09bb61644e004f7a','name':'Can we delete all data in dev and test and republish when we do a deployment?','nameData':null,'pos':117917},{'state':'incomplete','id':'528cd5c2c62459b22f0033a7','name':'Help and support article Found helpful integration','nameData':null,'pos':135046},{'state':'incomplete','id':'528cd5e695f9170930003055','name':'Site core analytic s integration','nameData':null,'pos':152147},{'state':'incomplete','id':'528cd5fb9832d4c12f0052ff','name':'Help and support most popular articles feature','nameData':null,'pos':169341},{'state':'incomplete','id':'528cda5f2e9806ce5c0035aa','name':'What sections of the your network peace are displayed on what page','nameData':null,'pos':186216},{'state':'incomplete','id':'528cedd9519354115b0039a4','name':'Error pages do we have styles to use','nameData':null,'pos':202764}]}";
	
	var result = JsonConvert.DeserializeObject<CheckList>(data);
	result.CheckItems.Dump();
}

public class CheckList
{
	public List<CheckListItem> CheckItems {get;set;}
}

public class CheckListItem 
{
	public string Name { get; set; }
}

// Define other methods and classes here