Monday, 31 December 2012

Json Function





Convert List<Employee> into Json String:
string jsonResult = JavaScriptConvert.SerializeObject(lst);

Convert Json String into List<Employee>:
emp = JavaScriptConvert.DeserializeObject<List<Employee>>(jsonService.getJsonData());



For JavaScriptConvert  you must have dll 
Please click on Download.

No comments:

Post a Comment