JavaScriptSerializer this is inbuilt class in .net framework
using System.Web.Script.Serialization;
public void Deserialize()
{
JavaScriptSerializer js = new JavaScriptSerializer();
string jScript = "{NAME:'SAMPLE', AGE:'00',INTEREST:'CODEPROJECT'}";
EmployeeRecord emp = js.Deserialize<employeerecord>(jScript);
}
public class EmployeeRecord
{
public string Name { get; set; }
public int Age { get; set; }
public string Interest { get; set; }
}
In case JSON is in array, use list to convert to c# objects
string jScript = "[{NAME:'SAMPLE', AGE:'00',INTEREST:'CODEPROJECT'},{NAME:'SAMPLE1', AGE:'01',INTEREST:'CODEPROJECT1'}]";
List< EmployeeRecord > sc = js.Deserialize<List< EmployeeRecord >>(jScript);
for more information
MSDN