json to class c# newtonsoft code example
Example 1: deserialize json to object c#
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Example 2: how to convert object in string JSON c#
var json = new JavaScriptSerializer().Serialize(obj);