C# Turn JSON Object to variable of its Class JSON.Net code example
Example 1: c# object to json string
Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar"})
Example 2: c# convert object to json
var jsonString = JsonConvert.SerializeObject(ObjectModel);