deserializeobject json c# example
Example 1: deserialize json to object c#
dynamic json = Newtonsoft.Json.JsonConvert.DeserializeObject(jsonstring);
Example 2: object to json c#
using Newtonsoft.Json;
var jsonString = JsonConvert.SerializeObject(obj);