c# object from json string example Example: c# object to json string Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar"})