i need to get data from sub-array inside json,but its not getting converted into list, below is my json string
{“responseCode”:”0″,”responseObject”:{“TotalRecords”:25,”TotalDisplayRecords”:25,”aaData”:[{“InvoiceId”:16573,”somedata..},” appCrmAccount(some title,total 100 such titles)
amount”:40086.00,”invoiceNumber”:”12,accountName”:”dfgAsfsadf”,” dueDateStr”:”04/24/2012″(data to be get into list)
here is my code:
var djson = new DataContractJsonSerializer(typeof(dataList));
var stream = new MemoryStream(Encoding.UTF8.GetBytes(json));
dataList result = (dataList)djson.ReadObject(stream);//not getting execute
kindly help..
Thanks in Advance.
what exactly you need to do is take array element return as a DataContract and its sub member as DataMember as
that it…