convert to json object c# code example Example: c# convert object to json var jsonString = JsonConvert.SerializeObject(ObjectModel);